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:
1 parent
fa02f14aea
commit
332193b7ec
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -146,7 +146,7 @@ RUN cd test && \
|
|||||||
$arch-w64-mingw32-clang $test.c -o $arch/$test-asan.exe -fsanitize=address -g -gcodeview -Wl,-pdb,$arch/$test-asan.pdb || exit 1; \
|
$arch-w64-mingw32-clang $test.c -o $arch/$test-asan.exe -fsanitize=address -g -gcodeview -Wl,-pdb,$arch/$test-asan.pdb || exit 1; \
|
||||||
done; \
|
done; \
|
||||||
for test in ubsan; do \
|
for test in ubsan; do \
|
||||||
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -fsanitize=undefined || exit 1; \
|
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -fsanitize=undefined -fno-sanitize-recover=all || exit 1; \
|
||||||
done; \
|
done; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -213,7 +213,7 @@ for arch in $ARCHS; do
|
|||||||
i686|x86_64) ;;
|
i686|x86_64) ;;
|
||||||
*) continue ;;
|
*) continue ;;
|
||||||
esac
|
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"
|
TESTS_EXTRA="$TESTS_EXTRA $test"
|
||||||
done
|
done
|
||||||
for test in $TESTS_OMP; do
|
for test in $TESTS_OMP; do
|
||||||
|
|||||||
Reference in new issue
Block a user