diff options
-rw-r--r-- | tests/unistd_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unistd_test.cpp b/tests/unistd_test.cpp index 8195ea8..21c14f4 100644 --- a/tests/unistd_test.cpp +++ b/tests/unistd_test.cpp @@ -462,3 +462,8 @@ TEST(unistd, getpid_caching_and_pthread_create) { ASSERT_EQ(0, pthread_join(t, &result)); ASSERT_EQ(NULL, result); } + +TEST(unistd_DeathTest, abort) { + ::testing::FLAGS_gtest_death_test_style = "threadsafe"; + ASSERT_EXIT(abort(), testing::KilledBySignal(SIGABRT), ""); +} |