am d9cb0ed2: Merge "Unit test for abort(3)."

* commit 'd9cb0ed281f0301ec2ca6828f0acc1ed08dceb8a':
  Unit test for abort(3).
This commit is contained in:
Elliott Hughes
2014-09-22 22:08:03 +00:00
committed by Android Git Automerger

View File

@@ -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), "");
}