Skip to content

Commit b543b4e

Browse files
author
dcashman
committed
aslr_test: Fix typo.
Bug: 26512380 Change-Id: Ia65986700f198a0f09db4a45a7d1bde173e557e6
1 parent a5d2920 commit b543b4e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/kernel.config/aslr_rec_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "aslr_test.h"
1818

1919
/* run tests if on supported arch */
20-
#if defined(__x86__64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__)
20+
#if defined(__x86_64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__)
2121

2222
/* make sure the default entropy values matches what we expect */
2323
TEST_F(AslrMmapTest, match_default) {

tests/kernel.config/aslr_test.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ unsigned int AslrMmapTest::def_cmpt, AslrMmapTest::min_cmpt, AslrMmapTest::max_c
145145

146146
void AslrMmapTest::SetUpTestCase() {
147147
/* set up per-arch values */
148-
#if defined(__x86__64__)
148+
#if defined(__x86_64__)
149149
def = 32;
150150
min = 28;
151151
max = 32;
@@ -211,7 +211,7 @@ void AslrMmapTest::TearDown() {
211211
}
212212

213213
/* run tests only if on supported arch */
214-
#if defined(__x86__64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__)
214+
#if defined(__x86_64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__)
215215

216216
TEST_F(AslrMmapTest, entropy_min_def) {
217217
if (user32) {

0 commit comments

Comments
 (0)