diff options
author | Yabin Cui <yabinc@google.com> | 2014-11-05 18:01:01 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2014-11-06 11:09:03 -0800 |
commit | 9df70403d95f5cfe6824e38a9a6c35f9b9bbc76a (patch) | |
tree | 5a2914b5db892fa3d2c17caf9e9a53f7fc0a5d93 /tests/stdlib_test.cpp | |
parent | 2311383180aee9388d28b03901a1e4ef021bcfa7 (diff) |
make all bionic death tests not dumpable
Bug: 18067305
Change-Id: Ia1ecacf47eddecc9bc58aaac779e0c218f463179
Diffstat (limited to 'tests/stdlib_test.cpp')
-rw-r--r-- | tests/stdlib_test.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/stdlib_test.cpp b/tests/stdlib_test.cpp index ea88f39b7..421cd8263 100644 --- a/tests/stdlib_test.cpp +++ b/tests/stdlib_test.cpp @@ -15,6 +15,7 @@ */ #include <gtest/gtest.h> +#include "BionicDeathTest.h" #include "TemporaryFile.h" #include <errno.h> @@ -168,9 +169,11 @@ static void TestBug57421_main() { // Even though this isn't really a death test, we have to say "DeathTest" here so gtest knows to // run this test (which exits normally) in its own process. -TEST(stdlib_DeathTest, getenv_after_main_thread_exits) { + +class stdlib_DeathTest : public BionicDeathTest {}; + +TEST_F(stdlib_DeathTest, getenv_after_main_thread_exits) { // https://code.google.com/p/android/issues/detail?id=57421 - ::testing::FLAGS_gtest_death_test_style = "threadsafe"; ASSERT_EXIT(TestBug57421_main(), ::testing::ExitedWithCode(0), ""); } |