Skip to content

Commit 4bf6b84

Browse files
committed
make: turn off --bench when running under valgrind
1 parent 8e58a27 commit 4bf6b84

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mk/tests.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ ifdef CHECK_XFAILS
3434
TESTARGS += --ignored
3535
endif
3636

37+
CTEST_BENCH = --bench
38+
3739
# Arguments to the cfail/rfail/rpass/bench tests
3840
ifdef CFG_VALGRIND
3941
CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)"
42+
CTEST_BENCH =
4043
endif
4144

4245
# Arguments to the perf tests
@@ -66,12 +69,12 @@ TEST_RATCHET_NOISE_PERCENT=10.0
6669
# Whether to ratchet or merely save benchmarks
6770
ifdef CFG_RATCHET_BENCH
6871
CRATE_TEST_BENCH_ARGS=\
69-
--test --bench \
72+
--test $(CTEST_BENCH) \
7073
--ratchet-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) \
7174
--ratchet-noise-percent $(TEST_RATCHET_NOISE_PERCENT)
7275
else
7376
CRATE_TEST_BENCH_ARGS=\
74-
--test --bench \
77+
--test $(CTEST_BENCH) \
7578
--save-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4))
7679
endif
7780

0 commit comments

Comments
 (0)