aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wchar_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/wchar_test.cpp
parenta26dd781fe675cf94c62183da27622eb83ff6fa7 (diff)
downloadandroid_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/wchar_test.cpp')
-rw-r--r--tests/wchar_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wchar_test.cpp b/tests/wchar_test.cpp
index 30d7bff4f..c8aec2d8c 100644
--- a/tests/wchar_test.cpp
+++ b/tests/wchar_test.cpp
@@ -288,7 +288,7 @@ TEST(wchar, mbrtowc) {
// 4-byte UTF-8.
ASSERT_EQ(4U, mbrtowc(out, "\xf0\xa4\xad\xa2" "ef", 6, NULL));
ASSERT_EQ(static_cast<wchar_t>(0x24b62), out[0]);
-#if __BIONIC__ // glibc allows this.
+#if defined(__BIONIC__) // glibc allows this.
// Illegal 5-byte UTF-8.
ASSERT_EQ(static_cast<size_t>(-1), mbrtowc(out, "\xf8\xa1\xa2\xa3\xa4" "f", 6, NULL));
ASSERT_EQ(EILSEQ, errno);