about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2020-06-23 18:07:55 +0200
committerSebastien Bacher <seb128@ubuntu.com>2020-06-23 18:09:28 +0200
commit2b0b0375d38edd687055f84be895822801618c4a (patch)
treeacd3aab5044a9bc5950925161b591a08b6e60f53 /tools
parent093c9db7b2a46e6042009e703e2e891abd2d2ba3 (diff)
parent5ed4e66e01b005212aee22c255c9c6b2a4b040a9 (diff)
Merge remote-tracking branch 'salsa/debian/master' into ubuntu/master
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run-nm-test.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/run-nm-test.sh b/tools/run-nm-test.sh
index 16d9d8a7..02fced01 100755
--- a/tools/run-nm-test.sh
+++ b/tools/run-nm-test.sh
@@ -228,6 +228,19 @@ if [[ -n "$BUILDDIR" ]]; then
     fi
 fi
 
+export ASAN_OPTIONS="$NM_TEST_ASAN_OPTIONS"
+export LSAN_OPTIONS="$NM_TEST_LSAN_OPTIONS"
+export UBSAN_OPTIONS="$NM_TEST_UBSAN_OPTIONS"
+if [ -z "${NM_TEST_ASAN_OPTIONS+x}" ]; then
+    ASAN_OPTIONS="fast_unwind_on_malloc=false detect_leaks=1"
+fi
+if [ -z "${NM_TEST_LSAN_OPTIONS+x}" ]; then
+    LSAN_OPTIONS="suppressions=$SCRIPT_PATH/../lsan.suppressions"
+fi
+if [ -z "${NM_TEST_UBSAN_OPTIONS+x}" ]; then
+    UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1"
+fi
+
 if ! _is_true "$NMTST_USE_VALGRIND" 0; then
     export NM_TEST_UNDER_VALGRIND=0
     exec "${NMTST_DBUS_RUN_SESSION[@]}" \