From 39036f655aee275f307b9557270e1364b0c6ef36 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 30 May 2014 11:23:21 -0700 Subject: [PATCH] Do not run dlclose test on glibc. The support library for this test is not built for host by default. Even if the support library is built, the test segfaults on glibc. Change-Id: I9cb7a364c59b55d4bf5d8634293037cd9bae020b --- tests/atexit_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/atexit_test.cpp b/tests/atexit_test.cpp index e01220e1b..797231f1b 100644 --- a/tests/atexit_test.cpp +++ b/tests/atexit_test.cpp @@ -25,6 +25,7 @@ #include TEST(atexit, dlclose) { +#if defined(__BIONIC__) std::string atexit_call_sequence; bool valid_this_in_static_dtor = false; void* handle = dlopen("libtest_atexit.so", RTLD_NOW); @@ -38,6 +39,9 @@ TEST(atexit, dlclose) { // this test verifies atexit call from atexit handler. as well as the order of calls ASSERT_EQ("Humpty Dumpty sat on a wall", atexit_call_sequence); ASSERT_TRUE(valid_this_in_static_dtor); +#else // __BIONIC__ + GTEST_LOG_(INFO) << "This test does nothing."; +#endif // __BIONIC__ } class TestMainStaticDtorClass {