summaryrefslogtreecommitdiffstats
path: root/tests/system_properties_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system_properties_test.cpp')
-rw-r--r--tests/system_properties_test.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/system_properties_test.cpp b/tests/system_properties_test.cpp
index bfd5854..c7bfee6 100644
--- a/tests/system_properties_test.cpp
+++ b/tests/system_properties_test.cpp
@@ -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;