Skip to content

Commit 0ec0049

Browse files
committed
Test cases print stack trace on sigsegv
1 parent 8e228f5 commit 0ec0049

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include "google/gtest/gtest.h"
2+
#include <messmer/cpp-utils/assert/backtrace.h>
23

34
int main(int argc, char **argv) {
5+
cpputils::showBacktraceOnSigSegv();
46
testing::InitGoogleTest(&argc, argv);
57
return RUN_ALL_TESTS();
68
}

0 commit comments

Comments
 (0)