aboutsummaryrefslogtreecommitdiffstats
path: root/tests/stack_protector_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/stack_protector_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/stack_protector_test.cpp')
-rw-r--r--tests/stack_protector_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/stack_protector_test.cpp b/tests/stack_protector_test.cpp
index fea24d887..aad51ecff 100644
--- a/tests/stack_protector_test.cpp
+++ b/tests/stack_protector_test.cpp
@@ -19,6 +19,7 @@
*/
#include <gtest/gtest.h>
+#include "BionicDeathTest.h"
#include <pthread.h>
#include <stdint.h>
@@ -120,9 +121,10 @@ TEST(stack_protector, global_guard) {
#endif // TEST_STACK_CHK_GUARD
}
-TEST(stack_protector_DeathTest, modify_stack_protector) {
+class stack_protector_DeathTest : public BionicDeathTest {};
+
+TEST_F(stack_protector_DeathTest, modify_stack_protector) {
#if defined(TEST_STACK_CHK_GUARD)
- ::testing::FLAGS_gtest_death_test_style = "threadsafe";
ASSERT_EXIT(do_modify_stack_chk_guard(), testing::KilledBySignal(SIGABRT), "");
#else // TEST_STACK_CHK_GUARD
GTEST_LOG_(INFO) << "This test does nothing.\n";