diff options
author | Karel Zak | 2019-04-17 10:38:50 +0200 |
---|---|---|
committer | Karel Zak | 2019-04-17 10:38:50 +0200 |
commit | 19bc8ef897a187cf7605fa22c60b410e72749ee8 (patch) | |
tree | e3332bb2f269f28f941705bdd91e0dad32ad60f9 /tests | |
parent | tests: use TS_ENABLE_ASAN in tests to detect ASAN (diff) | |
download | kernel-qcow2-util-linux-19bc8ef897a187cf7605fa22c60b410e72749ee8.tar.gz kernel-qcow2-util-linux-19bc8ef897a187cf7605fa22c60b410e72749ee8.tar.xz kernel-qcow2-util-linux-19bc8ef897a187cf7605fa22c60b410e72749ee8.zip |
tests: fix TS_ENABLE_ASAN usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ts/kill/name_to_number | 2 | ||||
-rwxr-xr-x | tests/ts/libmount/tabfiles-tags | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ts/kill/name_to_number b/tests/ts/kill/name_to_number index 86e644513..b6ae4be4d 100755 --- a/tests/ts/kill/name_to_number +++ b/tests/ts/kill/name_to_number @@ -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 diff --git a/tests/ts/libmount/tabfiles-tags b/tests/ts/libmount/tabfiles-tags index ff17bccc6..69b06a95a 100755 --- a/tests/ts/libmount/tabfiles-tags +++ b/tests/ts/libmount/tabfiles-tags @@ -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 |