diff options
author | Christopher Ferris <cferris@google.com> | 2013-10-28 15:24:04 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2013-10-29 14:55:11 -0700 |
commit | 13613137bc4266656bffce464e525eb9ae6371f0 (patch) | |
tree | 0acda656b21254c1b809b575ab403d4099811b6e /tests/stdio_test.cpp | |
parent | 020bcdaef349b6bd82302a0656fdf9aaff30bdb3 (diff) |
Fix up failing glibc tests.
There is a known bug running clone with the CLONE_VM flag, so for host
create an empty test.
Change the expected output of the stdio test for a glibc difference.
Change the pause test to use ScopedSignalHandler to setup/restore the SIGALRM
handler.
After this, running bionic-unit-tests-glibc passes for all tests.
Bug: 11389824
Change-Id: Ib304eae4164115835a54991dfdca5821ecc3db5e
Diffstat (limited to 'tests/stdio_test.cpp')
-rw-r--r-- | tests/stdio_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/stdio_test.cpp b/tests/stdio_test.cpp index 2d9717f5c..11bd17f84 100644 --- a/tests/stdio_test.cpp +++ b/tests/stdio_test.cpp @@ -273,7 +273,11 @@ TEST(stdio, snprintf_smoke) { void* p = NULL; snprintf(buf, sizeof(buf), "a%d,%pz", 5, p); +#if defined(__BIONIC__) EXPECT_STREQ("a5,0x0z", buf); +#else + EXPECT_STREQ("a5,(nil)z", buf); +#endif snprintf(buf, sizeof(buf), "a%lld,%d,%d,%dz", 0x1000000000LL, 6, 7, 8); EXPECT_STREQ("a68719476736,6,7,8z", buf); |