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
diff --git a/tests/stdio_test.cpp b/tests/stdio_test.cpp
index 2d9717f..11bd17f 100644
--- a/tests/stdio_test.cpp
+++ b/tests/stdio_test.cpp
@@ -273,7 +273,11 @@
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);