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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-04-03 14:04:28 +10:30 committed by Christian Decker
parent bad0ac6ed6
commit dda000fe2d

View file

@ -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