summaryrefslogtreecommitdiffstats
path: root/tests/atexit_test.cpp
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2014-05-30 18:03:26 -0700
committerDmitriy Ivanov <dimitry@google.com>2014-05-30 18:16:09 -0700
commit214e64135ee22e8aa7f71e56e0f5662dc6746ad0 (patch)
treec4125c044f47c85791810278c8fd6eca14488386 /tests/atexit_test.cpp
parent66b5e6b609f16062262b777905bdd2305a941596 (diff)
downloadbionic-214e64135ee22e8aa7f71e56e0f5662dc6746ad0.zip
bionic-214e64135ee22e8aa7f71e56e0f5662dc6746ad0.tar.gz
bionic-214e64135ee22e8aa7f71e56e0f5662dc6746ad0.tar.bz2
Make atexit.dlclose work for glibc
* build libtest_atexit.so * remove atexit(NULL) - glibc segfaults on it Bug: 15350494 Change-Id: I27d79130c32c5691b0e8790a57d92f9710f5bf4a
Diffstat (limited to 'tests/atexit_test.cpp')
-rw-r--r--tests/atexit_test.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/atexit_test.cpp b/tests/atexit_test.cpp
index 797231f..e01220e 100644
--- a/tests/atexit_test.cpp
+++ b/tests/atexit_test.cpp
@@ -25,7 +25,6 @@
#include <string>
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);
@@ -39,9 +38,6 @@ 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 {