summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-10-19 12:13:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-10-19 12:28:17 -0400
commit6373216301885204dabcb2ab8b13c7ce929c2299 (patch)
treea8efab2644bd433cdded74da55915d9614b85055
parentbe3c3ed7dfd0182ea11468c8d4dffa465ce7a44f (diff)
downloadbfs-6373216301885204dabcb2ab8b13c7ce929c2299.tar.xz
tests: Set abort_on_error=1 for the sanitizers
This makes it easier to distinguish crashes from expected failures
-rwxr-xr-xtests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 7bcda74..7c96f29 100755
--- a/tests.sh
+++ b/tests.sh
@@ -23,6 +23,12 @@ umask 022
export LC_ALL=C
export TZ=UTC
+export ASAN_OPTIONS="abort_on_error=1"
+export LSAN_OPTIONS="abort_on_error=1"
+export MSAN_OPTIONS="abort_on_error=1"
+export TSAN_OPTIONS="abort_on_error=1"
+export UBSAN_OPTIONS="abort_on_error=1"
+
if [ -t 1 ]; then
BLD="$(printf '\033[01m')"
RED="$(printf '\033[01;31m')"