aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/persistence/filestorage/gtest_runner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/persistence/filestorage/gtest_runner.cpp')
-rw-r--r--storage/src/tests/persistence/filestorage/gtest_runner.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/storage/src/tests/persistence/filestorage/gtest_runner.cpp b/storage/src/tests/persistence/filestorage/gtest_runner.cpp
index 5d1fde4130c..1ed7bc91843 100644
--- a/storage/src/tests/persistence/filestorage/gtest_runner.cpp
+++ b/storage/src/tests/persistence/filestorage/gtest_runner.cpp
@@ -1,8 +1,17 @@
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/gtest/gtest.h>
+#include <absl/debugging/failure_signal_handler.h>
#include <vespa/log/log.h>
LOG_SETUP("storage_filestorage_gtest_runner");
-GTEST_MAIN_RUN_ALL_TESTS()
+int main(int argc, char* argv[]) {
+ absl::FailureSignalHandlerOptions opts;
+ opts.call_previous_handler = true;
+ opts.use_alternate_stack = false; // Suboptimal, but needed to get proper backtracing (for some reason...)
+ absl::InstallFailureSignalHandler(opts);
+
+ ::testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}