aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pthread_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2014-11-05 18:01:01 -0800
committerYabin Cui <yabinc@google.com>2014-11-06 11:09:03 -0800
commit9df70403d95f5cfe6824e38a9a6c35f9b9bbc76a (patch)
tree5a2914b5db892fa3d2c17caf9e9a53f7fc0a5d93 /tests/pthread_test.cpp
parent2311383180aee9388d28b03901a1e4ef021bcfa7 (diff)
downloadandroid_bionic-9df70403d95f5cfe6824e38a9a6c35f9b9bbc76a.tar.gz
android_bionic-9df70403d95f5cfe6824e38a9a6c35f9b9bbc76a.tar.bz2
android_bionic-9df70403d95f5cfe6824e38a9a6c35f9b9bbc76a.zip
make all bionic death tests not dumpable
Bug: 18067305 Change-Id: Ia1ecacf47eddecc9bc58aaac779e0c218f463179
Diffstat (limited to 'tests/pthread_test.cpp')
-rw-r--r--tests/pthread_test.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/pthread_test.cpp b/tests/pthread_test.cpp
index 61641e47f..379e49519 100644
--- a/tests/pthread_test.cpp
+++ b/tests/pthread_test.cpp
@@ -16,6 +16,10 @@
#include <gtest/gtest.h>
+#include "private/ScopeGuard.h"
+#include "BionicDeathTest.h"
+#include "ScopedSignalHandler.h"
+
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
@@ -27,8 +31,6 @@
#include <time.h>
#include <unistd.h>
-#include "private/ScopeGuard.h"
-#include "ScopedSignalHandler.h"
TEST(pthread, pthread_key_create) {
pthread_key_t key;
@@ -302,9 +304,11 @@ struct TestBug37410 {
// 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(pthread_DeathTest, pthread_bug_37410) {
+
+class pthread_DeathTest : public BionicDeathTest {};
+
+TEST_F(pthread_DeathTest, pthread_bug_37410) {
// http://code.google.com/p/android/issues/detail?id=37410
- ::testing::FLAGS_gtest_death_test_style = "threadsafe";
ASSERT_EXIT(TestBug37410::main(), ::testing::ExitedWithCode(0), "");
}