From: Miroslav Lichvar Date: Wed, 24 Mar 2021 16:50:33 +0000 (+0100) Subject: test: enable valgrind in more tests X-Git-Tag: 4.1-pre1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=224ab8ddb184d1f035d2a93c3150f4a62e3db816;p=thirdparty%2Fchrony.git test: enable valgrind in more tests --- diff --git a/test/compilation/003-sanitizers b/test/compilation/003-sanitizers index a3337f25..15082956 100755 --- a/test/compilation/003-sanitizers +++ b/test/compilation/003-sanitizers @@ -80,7 +80,12 @@ for CC in gcc clang; do echo pushd test/simulation || exit 1 - CLKNETSIM_RANDOM_SEED=101 ./run -i 1 || exit 1 + export CLKNETSIM_RANDOM_SEED=101 + if [ "$arch_opts" = "" -a "$san_options" = "" ]; then + CLKNETSIM_CLIENT_WRAPPER=valgrind ./run -i 1 || exit 1 + else + ./run -i 1 || exit 1 + fi popd done done