Skip to content

Commit fe48ac8

Browse files
author
MarcoFalke
committed
Merge #18013: bench: Fix benchmarks filters
0dae5a5 Fix benchmarks filters (Elichai Turkel) Pull request description: The bug was introduced in bitcoin/bitcoin#17781 before this fix `./src/bench/bench_bitcoin -filter=*` will fail with: ``` # Benchmark, evals, iterations, total, min, max, median bench_bitcoin: bench/bench.cpp:119: static void benchmark::BenchRunner::RunAll(benchmark::Printer&, uint64_t, double, const string&, bool): Assertion `g_testing_setup == nullptr' failed. Aborted (core dumped) ``` ACKs for top commit: MarcoFalke: ACK 0dae5a5 Tree-SHA512: 43de4c7f4a5f29593972cf3bc822429466d0609c159c95d37c9e5370be392ace698b218a65542c7d53bfa52db7377ebdab808501ae109c2249f7f956bd318312
2 parents 2755b2b + 0dae5a5 commit fe48ac8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bench/bench.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ void benchmark::BenchRunner::RunAll(Printer& printer, uint64_t num_evals, double
126126
}
127127

128128
if (!std::regex_match(p.first, baseMatch, reFilter)) {
129+
g_testing_setup = nullptr;
129130
continue;
130131
}
131132

0 commit comments

Comments
 (0)