]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: use TS_ENABLE_ASAN in tests to detect ASAN
authorKarel Zak <kzak@redhat.com>
Wed, 17 Apr 2019 08:10:46 +0000 (10:10 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Apr 2019 08:10:46 +0000 (10:10 +0200)
It seems better to not use any random ASAN variable.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/kill/name_to_number
tests/ts/libmount/tabfiles-tags

index fd2aaafe0a0c03167e83eeb16fa5bb6ee3da0e47..86e6445133980ffa158b236823c5b93ca2288bf9 100755 (executable)
@@ -38,7 +38,7 @@ for SIG in $($TS_CMD_KILL -L); do
                EXPECTED=$SIG
                continue
        fi
-       if [ -f "$ASAN_SYMBOLIZER_PATH" ] && [ "x$SIG" = "xSEGV" ]; then
+       if [ -f "$TS_ENABLE_ASAN" ] && [ "x$SIG" = "xSEGV" ]; then
                continue
        fi
        if [ "x$SIG" = "xSTOP" ] || [ "x$SIG" = "xKILL" ]; then
index 38858f47b05bc77a11fa6ad0d929b8bc2330a601..ff17bccc6dd5a23e55c586add2825f09c58b46bf 100755 (executable)
@@ -8,7 +8,7 @@ ts_init "$*"
 
 ts_skip_nonroot
 
-if [ -f "$ASAN_SYMBOLIZER_PATH" ]; then
+if [ -f "$TS_ENABLE_ASAN" ]; then
        TS_KNOWN_FAIL="yes"
 fi