diff --git a/third-party/folly/src/folly/test/BenchmarkTest.cpp b/third-party/folly/src/folly/test/BenchmarkTest.cpp index aee855cc7cd662..4257fb7384e959 100644 --- a/third-party/folly/src/folly/test/BenchmarkTest.cpp +++ b/third-party/folly/src/folly/test/BenchmarkTest.cpp @@ -19,8 +19,10 @@ #include #include #include +#include #include +#include namespace folly { namespace detail { @@ -243,6 +245,7 @@ TEST_F(BenchmarkingStateTest, PerfSkipsAnIteration) { #if FOLLY_PERF_IS_SUPPORTED TEST_F(BenchmarkingStateTest, PerfIntegration) { + SKIP_IF(!std::filesystem::exists(kPerfBinaryPath)) << "Missing perf binary"; std::vector in(1000, 0); state.addBenchmark(__FILE__, "a", [&](unsigned n) {