OSDN Git Service

aslr_test: Fix typo.
authordcashman <dcashman@google.com>
Tue, 22 Mar 2016 23:08:26 +0000 (16:08 -0700)
committerdcashman <dcashman@google.com>
Tue, 22 Mar 2016 23:11:08 +0000 (16:11 -0700)
Bug: 26512380
Change-Id: Ia65986700f198a0f09db4a45a7d1bde173e557e6

tests/kernel.config/aslr_rec_test.cpp
tests/kernel.config/aslr_test.cpp

index 3dc61e6..e154424 100644 (file)
@@ -17,7 +17,7 @@
 #include "aslr_test.h"
 
 /* run tests if on supported arch */
-#if defined(__x86__64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__)
+#if defined(__x86_64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__)
 
 /* make sure the default entropy values matches what we expect */
 TEST_F(AslrMmapTest, match_default) {
index ff19a10..ef47f4f 100644 (file)
@@ -145,7 +145,7 @@ unsigned int AslrMmapTest::def_cmpt, AslrMmapTest::min_cmpt, AslrMmapTest::max_c
 
 void AslrMmapTest::SetUpTestCase() {
     /* set up per-arch values */
-#if defined(__x86__64__)
+#if defined(__x86_64__)
     def = 32;
     min = 28;
     max = 32;
@@ -211,7 +211,7 @@ void AslrMmapTest::TearDown() {
 }
 
 /* run tests only if on supported arch */
-#if defined(__x86__64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__)
+#if defined(__x86_64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__)
 
 TEST_F(AslrMmapTest, entropy_min_def) {
     if (user32) {