diff options
author | Elliott Hughes <enh@google.com> | 2014-09-22 21:46:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-09-22 21:46:56 +0000 |
commit | d9cb0ed281f0301ec2ca6828f0acc1ed08dceb8a (patch) | |
tree | 771f3667d8ca7d3b80b36e859e889814bcb83e5e | |
parent | 9f423c554a0ffcee2e34472bf0bc1aef3621a822 (diff) | |
parent | 60452a211c19e8cd09d4111fa733c64ecd1200f0 (diff) | |
download | bionic-d9cb0ed281f0301ec2ca6828f0acc1ed08dceb8a.zip bionic-d9cb0ed281f0301ec2ca6828f0acc1ed08dceb8a.tar.gz bionic-d9cb0ed281f0301ec2ca6828f0acc1ed08dceb8a.tar.bz2 |
Merge "Unit test for abort(3)."
-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), ""); +} |