diff options
author | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2015-07-19 22:42:00 +0000 |
---|---|---|
committer | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2015-07-19 22:42:00 +0000 |
commit | d778c261a2488fb17cf048892fd490361e6fddd2 (patch) | |
tree | 90d9a946879fbdfaf02f7a27b6f2ed6a41a3fcca | |
parent | 0afa9893800d97be31bb3bf87bcec2e07e1969fb (diff) | |
download | googletest-d778c261a2488fb17cf048892fd490361e6fddd2.tar.gz |
Add injection point for GTEST_KILLED_BY_SIGNAL_OVERRIDE.
git-svn-id: http://googletest.googlecode.com/svn/trunk@733 861a406c-534a-0410-8894-cb66d6ee9925
-rw-r--r-- | src/gtest-death-test.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gtest-death-test.cc b/src/gtest-death-test.cc index b049eb0..a614407 100644 --- a/src/gtest-death-test.cc +++ b/src/gtest-death-test.cc @@ -169,6 +169,14 @@ KilledBySignal::KilledBySignal(int signum) : signum_(signum) { // KilledBySignal function-call operator. bool KilledBySignal::operator()(int exit_status) const { +# if defined(GTEST_KILLED_BY_SIGNAL_OVERRIDE_) + { + bool result; + if (GTEST_KILLED_BY_SIGNAL_OVERRIDE_(signum_, exit_status, &result)) { + return result; + } + } +# endif // defined(GTEST_KILLED_BY_SIGNAL_OVERRIDE_) return WIFSIGNALED(exit_status) && WTERMSIG(exit_status) == signum_; } # endif // !GTEST_OS_WINDOWS |