]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: enable valgrind in more tests
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 24 Mar 2021 16:50:33 +0000 (17:50 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 24 Mar 2021 16:50:33 +0000 (17:50 +0100)
test/compilation/003-sanitizers

index a3337f2518d7e1271a26c709e4e09ba6cd0b2af8..150829566c4a8b99cf81f097ae0d6f6268420f76 100755 (executable)
@@ -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