Skip to content

Commit

Permalink
Add InitGoogleTest to ExchangeFuzzer (#8612)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookincubator/velox#8612

We call InitGoogleTest in our fuzzer tests so they can be invoked like GTests, including all the flags, even though they're not.

It looks like ExchangeFuzzer is missing this call, so it fails when invoked like a GTest when built in Release mode.

Reviewed By: kagamiori

Differential Revision: D53250534

fbshipit-source-id: e95f5557d081c268470e8268c1d9fe2fada44b3b
  • Loading branch information
Kevin Wilfong authored and facebook-github-bot committed Feb 1, 2024
1 parent 1c40485 commit 0579f97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions velox/exec/tests/ExchangeFuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ class ExchangeFuzzer : public VectorTestBase {
int32_t ExchangeFuzzer::iteration_;

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
folly::Init init{&argc, &argv};
memory::MemoryManagerOptions options;
options.useMmapAllocator = true;
Expand Down

0 comments on commit 0579f97

Please sign in to comment.