Skip to content

Commit 9c6d297

Browse files
saladqcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 766272589
1 parent 890b53c commit 9c6d297

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

fuzztest/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ cc_library(
104104
testonly = 1,
105105
srcs = ["fuzztest_gtest_main.cc"],
106106
deps = [
107+
"@abseil-cpp//absl/debugging:failure_signal_handler",
108+
"@abseil-cpp//absl/debugging:symbolize",
107109
"@com_google_fuzztest//fuzztest:init_fuzztest",
108110
"@googletest//:gtest",
109111
],

fuzztest/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ fuzztest_cc_library(
9494
SRCS
9595
"fuzztest_gtest_main.cc"
9696
DEPS
97+
absl::failure_signal_handler
98+
absl::symbolize
9799
fuzztest::init_fuzztest
98100
GTest::gtest
99101
)

fuzztest/fuzztest_gtest_main.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@
1414

1515
#include "gtest/gtest.h"
1616
#include "./fuzztest/init_fuzztest.h"
17+
#include "absl/debugging/failure_signal_handler.h"
18+
#include "absl/debugging/symbolize.h"
1719

1820
int main(int argc, char** argv) {
21+
absl::InitializeSymbolizer(argv[0]);
22+
absl::FailureSignalHandlerOptions options;
23+
absl::InstallFailureSignalHandler(options);
1924
testing::InitGoogleTest(&argc, argv);
2025
// We call fuzztest::ParseAbslFlags rather than absl::ParseCommandLine
2126
// since the latter would complain about any unknown flags that need

0 commit comments

Comments
 (0)