diff --git a/src/aborts.hpp b/src/aborts.hpp index 8bff08e..07dd6a6 100644 --- a/src/aborts.hpp +++ b/src/aborts.hpp @@ -6,6 +6,8 @@ #include #include #include +// https://www.man7.org/linux/man-pages/man3/strsignal.3.html +#include // NOLINT(modernize-deprecated-headers) #include #include #include @@ -33,8 +35,7 @@ struct aborts_fn os << "exited: " << WEXITSTATUS(*r.status); } if (WIFSIGNALED(*r.status)) { - os << "terminated due to signal: SIG" - << sigabbrev_np(WTERMSIG(*r.status)); + os << "terminated due to signal: " << strsignal(WTERMSIG(*r.status)); } } return os; diff --git a/test/BUILD.bazel b/test/BUILD.bazel index f28d8c5..5f6f152 100644 --- a/test/BUILD.bazel +++ b/test/BUILD.bazel @@ -241,7 +241,7 @@ skytest_test( "does not abort.*FAIL", "exited: 0", "terminates due to sigint.*FAIL", - "signal: SIGINT", + "signal: Interrupt", "exits without abort.*FAIL", "exited: 1", "1 test passed.*3 tests failed",