summaryrefslogtreecommitdiff
path: root/src/mongo/unittest/unittest_main.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2014-08-05 17:25:35 -0400
committerAndy Schwerin <schwerin@mongodb.com>2014-08-06 17:52:33 -0400
commiteaac0152f37484f7e581be6fc1d838eb6001ddfb (patch)
tree2fad065558805231e609c25414e53d004cd244cf /src/mongo/unittest/unittest_main.cpp
parente4dc978189d4022e3f5e81b4de4d4eee061a8314 (diff)
downloadmongo-eaac0152f37484f7e581be6fc1d838eb6001ddfb.tar.gz
SERVER-10431 Split synchronous signal handlers into new library; use them in unit tests.
With this change, unit tests that segfault or abort will correctly print stack traces.
Diffstat (limited to 'src/mongo/unittest/unittest_main.cpp')
-rw-r--r--src/mongo/unittest/unittest_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/unittest/unittest_main.cpp b/src/mongo/unittest/unittest_main.cpp
index 831ea4be49c..da24270bf94 100644
--- a/src/mongo/unittest/unittest_main.cpp
+++ b/src/mongo/unittest/unittest_main.cpp
@@ -32,10 +32,10 @@
#include "mongo/base/initializer.h"
#include "mongo/unittest/unittest.h"
-#include "mongo/util/exception_filter_win32.h"
+#include "mongo/util/signal_handlers_synchronous.h"
int main( int argc, char **argv, char **envp ) {
- ::mongo::setWindowsUnhandledExceptionFilter();
+ ::mongo::setupSynchronousSignalHandlers();
::mongo::runGlobalInitializersOrDie(argc, argv, envp);
return ::mongo::unittest::Suite::run(std::vector<std::string>(), "", 1);
}