fix unittests.

7e6ce1a3c5 fixed abort() to raise
SIGABRT rather than causing SIGSEGV. However, the unittests were
not updated.

Fix unittests.

Change-Id: I73db194127b9b9e9440358aa94273863765a736b
This commit is contained in:
Nick Kralevich
2013-06-11 15:45:23 -07:00
parent fc104f899d
commit fd0325bd98
3 changed files with 35 additions and 35 deletions

View File

@@ -119,7 +119,7 @@ static void do_modify_stack_chk_guard() {
TEST(stack_protector_DeathTest, modify_stack_protector) {
::testing::FLAGS_gtest_death_test_style = "threadsafe";
ASSERT_EXIT(do_modify_stack_chk_guard(), testing::KilledBySignal(SIGSEGV), "");
ASSERT_EXIT(do_modify_stack_chk_guard(), testing::KilledBySignal(SIGABRT), "");
}
#endif