| 88 | void fake_signal_handler(int signum) {} |
| 89 | |
| 90 | bool IsSignalHandlerRegistered(int signum) { |
| 91 | struct sigaction cur_action; |
| 92 | CHECK_EQ(0, sigaction(signum, nullptr, &cur_action)); |
| 93 | return cur_action.sa_handler != SIG_DFL; |
| 94 | } |
| 95 | } // anonymous namespace |
| 96 | |
| 97 | TEST_F(DebugUtilTest, TestStackTraceInvalidTid) { |