Fix backtrace_test on osx
This commit is contained in:
parent
847dc893c0
commit
a7ee4e5446
@ -79,28 +79,28 @@ TEST(BacktraceTest, DoesntCrashOnCaughtException) {
|
|||||||
|
|
||||||
TEST(BacktraceTest, ShowBacktraceOnNullptrAccess) {
|
TEST(BacktraceTest, ShowBacktraceOnNullptrAccess) {
|
||||||
auto output = call_process_exiting_with_nullptr_violation();
|
auto output = call_process_exiting_with_nullptr_violation();
|
||||||
EXPECT_THAT(output, HasSubstr("handle_exit_signal"));
|
EXPECT_THAT(output, HasSubstr("cpp-utils-test_exit_signal"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(BacktraceTest, ShowBacktraceOnSigSegv) {
|
TEST(BacktraceTest, ShowBacktraceOnSigSegv) {
|
||||||
auto output = call_process_exiting_with_sigsegv();
|
auto output = call_process_exiting_with_sigsegv();
|
||||||
EXPECT_THAT(output, HasSubstr("handle_exit_signal"));
|
EXPECT_THAT(output, HasSubstr("cpp-utils-test_exit_signal"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(BacktraceTest, ShowBacktraceOnUnhandledException) {
|
TEST(BacktraceTest, ShowBacktraceOnUnhandledException) {
|
||||||
auto output = call_process_exiting_with_exception("my_exception_message");
|
auto output = call_process_exiting_with_exception("my_exception_message");
|
||||||
EXPECT_THAT(output, HasSubstr("handle_exit_signal"));
|
EXPECT_THAT(output, HasSubstr("cpp-utils-test_exit_signal"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(BacktraceTest, ShowBacktraceOnSigIll) {
|
TEST(BacktraceTest, ShowBacktraceOnSigIll) {
|
||||||
auto output = call_process_exiting_with_sigill();
|
auto output = call_process_exiting_with_sigill();
|
||||||
EXPECT_THAT(output, HasSubstr("handle_exit_signal"));
|
EXPECT_THAT(output, HasSubstr("cpp-utils-test_exit_signal"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(_MSC_VER)
|
#if !defined(_MSC_VER)
|
||||||
TEST(BacktraceTest, ShowBacktraceOnSigAbrt) {
|
TEST(BacktraceTest, ShowBacktraceOnSigAbrt) {
|
||||||
auto output = call_process_exiting_with_sigabrt();
|
auto output = call_process_exiting_with_sigabrt();
|
||||||
EXPECT_THAT(output, HasSubstr("handle_exit_signal"));
|
EXPECT_THAT(output, HasSubstr("cpp-utils-test_exit_signal"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(BacktraceTest, ShowBacktraceOnSigAbrt_ShowsCorrectSignalName) {
|
TEST(BacktraceTest, ShowBacktraceOnSigAbrt_ShowsCorrectSignalName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user