From dda000fe2d334d4806d0c52e6f91b4fd1ec3da4f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 3 Apr 2019 14:04:28 +1030 Subject: [PATCH] unittest: make sure VALGRIND env var set under valgrind. In particular, `make unittest/bitcoin/test/run-secret_eq_consttime` didn't set VALGRIND if it was set via config.vars, so runs for a *long* time. Signed-off-by: Rusty Russell --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5a47b3f10..b72c98f7b 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ BOLTVERSION := da71867c840abe057d7a68f358dd9493e0e79110 -include config.vars ifneq ($(VALGRIND),0) -VG=valgrind -q --error-exitcode=7 +VG=VALGRIND=1 valgrind -q --error-exitcode=7 VG_TEST_ARGS = --track-origins=yes --leak-check=full --show-reachable=yes --errors-for-leak-kinds=all endif