]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fix TS_ENABLE_ASAN usage
authorKarel Zak <kzak@redhat.com>
Wed, 17 Apr 2019 08:38:50 +0000 (10:38 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Apr 2019 08:38:50 +0000 (10:38 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/kill/name_to_number
tests/ts/libmount/tabfiles-tags

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