make all bionic death tests not dumpable

Bug: 18067305

Change-Id: Ia1ecacf47eddecc9bc58aaac779e0c218f463179
This commit is contained in:
Yabin Cui
2014-11-05 18:01:01 -08:00
parent 2311383180
commit 9df70403d9
7 changed files with 83 additions and 99 deletions

View File

@@ -15,8 +15,10 @@
*/
#include <gtest/gtest.h>
#include <sys/wait.h>
#include "BionicDeathTest.h"
#include <errno.h>
#include <sys/wait.h>
#include <unistd.h>
#include <string>
@@ -398,9 +400,10 @@ bool KilledByFault::operator()(int exit_status) const {
WTERMSIG(exit_status) == SIGABRT);
}
TEST(properties_DeathTest, read_only) {
class properties_DeathTest : public BionicDeathTest {};
TEST_F(properties_DeathTest, read_only) {
#if defined(__BIONIC__)
::testing::FLAGS_gtest_death_test_style = "threadsafe";
// This test only makes sense if we're talking to the real system property service.
struct stat sb;