]> git.codecow.com Git - Monocypher.git/commitdiff
Run valgrind without march=native
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 24 Aug 2023 17:02:14 +0000 (19:02 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 24 Aug 2023 17:15:33 +0000 (19:15 +0200)
Valgrind doesn't always support all relevant instructions and crashes
on some platforms, most notably github CI.

tests/test.sh

index 7d2207d4129f0059a46fff8bdf9060010e2bff8f..04b2deb20bd6743fbb3a5519192cef67442f7fc6 100755 (executable)
@@ -59,7 +59,7 @@ make clean;  make test CFLAGS="-DBLAKE2_NO_UNROLLING -O3"
 make clean;  make test CC="clang -std=c99" CFLAGS="-g -fsanitize=address"
 make clean;  make test CC="clang -std=c99" CFLAGS="-g -fsanitize=memory"
 make clean;  make test CC="clang -std=c99" CFLAGS="-g -fsanitize=undefined"
-make clean;  make test.out;  valgrind ./test.out
+make clean;  make test.out CFLAGS="-g";  valgrind ./test.out
 
 echo
 echo "All sanitisers passed!"