File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ cc_library(
104
104
testonly = 1 ,
105
105
srcs = ["fuzztest_gtest_main.cc" ],
106
106
deps = [
107
+ "@abseil-cpp//absl/debugging:failure_signal_handler" ,
108
+ "@abseil-cpp//absl/debugging:symbolize" ,
107
109
"@com_google_fuzztest//fuzztest:init_fuzztest" ,
108
110
"@googletest//:gtest" ,
109
111
],
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ fuzztest_cc_library(
94
94
SRCS
95
95
"fuzztest_gtest_main.cc"
96
96
DEPS
97
+ absl::failure_signal_handler
98
+ absl::symbolize
97
99
fuzztest::init_fuzztest
98
100
GTest::gtest
99
101
)
Original file line number Diff line number Diff line change 14
14
15
15
#include " gtest/gtest.h"
16
16
#include " ./fuzztest/init_fuzztest.h"
17
+ #include " absl/debugging/failure_signal_handler.h"
18
+ #include " absl/debugging/symbolize.h"
17
19
18
20
int main (int argc, char ** argv) {
21
+ absl::InitializeSymbolizer (argv[0 ]);
22
+ absl::FailureSignalHandlerOptions options;
23
+ absl::InstallFailureSignalHandler (options);
19
24
testing::InitGoogleTest (&argc, argv);
20
25
// We call fuzztest::ParseAbslFlags rather than absl::ParseCommandLine
21
26
// since the latter would complain about any unknown flags that need
You can’t perform that action at this time.
0 commit comments