summaryrefslogtreecommitdiff
path: root/tests/stdlib_test.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-05-13 11:19:57 -0700
committerElliott Hughes <enh@google.com>2014-05-13 11:19:57 -0700
commit063525c61d24776094d76971f33920e2a2079530 (patch)
treede279e25b05c43dbb06bc3ceb49f23bed3874377 /tests/stdlib_test.cpp
parenta26dd781fe675cf94c62183da27622eb83ff6fa7 (diff)
Consistently use #if defined(__BIONIC__) in tests.
I've also switched some tests to be positive rather than negative, because !defined is slightly harder to reason about and there are only two cases: bionic and glibc. Change-Id: I8d3ac40420ca5aead3e88c69cf293f267273c8ef
Diffstat (limited to 'tests/stdlib_test.cpp')
-rw-r--r--tests/stdlib_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stdlib_test.cpp b/tests/stdlib_test.cpp
index fc0f0e1a2..978a60fa8 100644
--- a/tests/stdlib_test.cpp
+++ b/tests/stdlib_test.cpp
@@ -42,7 +42,7 @@ TEST(stdlib, lrand48_random_rand) {
EXPECT_EQ(902267124, lrand48());
EXPECT_EQ(132366131, lrand48());
-#if __BIONIC__
+#if defined(__BIONIC__)
// On bionic, random(3) is equivalent to lrand48...
srandom(0x01020304);
EXPECT_EQ(1409163720, random());