Repository: mesos Updated Branches: refs/heads/master 788d3a617 -> 5a7f66e13
Added GLOG signal handler to print stack traces on segfault in libprocess. Review: https://reviews.apache.org/r/24674 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5a7f66e1 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/5a7f66e1 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/5a7f66e1 Branch: refs/heads/master Commit: 5a7f66e13c4b066458554966bbd7ef847523370b Parents: d665e52 Author: Vinod Kone <[email protected]> Authored: Wed Aug 13 15:31:25 2014 -0700 Committer: Vinod Kone <[email protected]> Committed: Wed Aug 13 15:54:57 2014 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/src/tests/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/5a7f66e1/3rdparty/libprocess/src/tests/main.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/tests/main.cpp b/3rdparty/libprocess/src/tests/main.cpp index 6c672b4..934cb47 100644 --- a/3rdparty/libprocess/src/tests/main.cpp +++ b/3rdparty/libprocess/src/tests/main.cpp @@ -1,7 +1,9 @@ -#include <gtest/gtest.h> +#include <glog/logging.h> #include <gmock/gmock.h> +#include <gtest/gtest.h> + #include <process/gmock.hpp> #include <process/gtest.hpp> #include <process/process.hpp> @@ -14,6 +16,10 @@ int main(int argc, char** argv) // Initialize libprocess. process::initialize(); + // Handles SIGSEGV, SIGILL, SIGFPE, SIGABRT, SIGBUS, SIGTERM + // by default. + google::InstallFailureSignalHandler(); + // Add the libprocess test event listeners. ::testing::TestEventListeners& listeners = ::testing::UnitTest::GetInstance()->listeners();
