diff options
author | Elliott Hughes <enh@google.com> | 2014-05-13 11:19:57 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-05-13 11:19:57 -0700 |
commit | 063525c61d24776094d76971f33920e2a2079530 (patch) | |
tree | de279e25b05c43dbb06bc3ceb49f23bed3874377 /tests/fortify_test.cpp | |
parent | a26dd781fe675cf94c62183da27622eb83ff6fa7 (diff) | |
download | android_bionic-063525c61d24776094d76971f33920e2a2079530.tar.gz android_bionic-063525c61d24776094d76971f33920e2a2079530.tar.bz2 android_bionic-063525c61d24776094d76971f33920e2a2079530.zip |
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/fortify_test.cpp')
-rw-r--r-- | tests/fortify_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fortify_test.cpp b/tests/fortify_test.cpp index e0d055eda..873c71eb1 100644 --- a/tests/fortify_test.cpp +++ b/tests/fortify_test.cpp @@ -668,7 +668,7 @@ TEST(DEATHTEST, recv_fortified) { } TEST(DEATHTEST, FD_ISSET_fortified) { -#ifdef __BIONIC__ // glibc catches this at compile-time. +#if defined(__BIONIC__) // glibc catches this at compile-time. ::testing::FLAGS_gtest_death_test_style = "threadsafe"; fd_set set; memset(&set, 0, sizeof(set)); |