run-tests: Build the ubsan test case with -fno-sanitize-recover=all

This allows easier programmatic checking that the sanitizer actually
caught the tested issue, when triggering the issue.
This commit is contained in:
Martin Storsjö committed 2022-09-16 19:42:21 +03:00
1 parent fa02f14aea
commit 332193b7ec
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -213,7 +213,7 @@ for arch in $ARCHS; do
i686|x86_64) ;;
*) continue ;;
esac
$arch-w64-mingw32-clang $test.c -o $TEST_DIR/$test.exe -fsanitize=undefined
$arch-w64-mingw32-clang $test.c -o $TEST_DIR/$test.exe -fsanitize=undefined -fno-sanitize-recover=all
TESTS_EXTRA="$TESTS_EXTRA $test"
done
for test in $TESTS_OMP; do