Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/fuzz/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ int main(int argc, char** argv) {
for (size_t i = 0; i < Envoy::test_corpus_.size(); ++i) {
argv[i + 1] = argv[i + 1 + input_args];
}
// Cleanup before we jump into the tests, the test API creates a singleton time system that we
// don't want to leak into gtest.
api.reset();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works. You could also put the entire stanza above into a helper function or a scope.


testing::InitGoogleTest(&argc, argv);
Envoy::Fuzz::Runner::setupEnvironment(argc, argv, spdlog::level::info);
Expand Down