diff options
author | Karel Zak | 2019-04-17 10:10:46 +0200 |
---|---|---|
committer | Karel Zak | 2019-04-17 10:10:46 +0200 |
commit | 2da48ba3cce141fa77c31ca70c5477d4ec98e190 (patch) | |
tree | 8ecaae6730d8161e75ae82640d1c91eff3c0fc36 /tests | |
parent | misc: consolidate version printing and close_stdout() (diff) | |
download | kernel-qcow2-util-linux-2da48ba3cce141fa77c31ca70c5477d4ec98e190.tar.gz kernel-qcow2-util-linux-2da48ba3cce141fa77c31ca70c5477d4ec98e190.tar.xz kernel-qcow2-util-linux-2da48ba3cce141fa77c31ca70c5477d4ec98e190.zip |
tests: use TS_ENABLE_ASAN in tests to detect ASAN
It seems better to not use any random ASAN variable.
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 fd2aaafe0..86e644513 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 "$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 diff --git a/tests/ts/libmount/tabfiles-tags b/tests/ts/libmount/tabfiles-tags index 38858f47b..ff17bccc6 100755 --- a/tests/ts/libmount/tabfiles-tags +++ b/tests/ts/libmount/tabfiles-tags @@ -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 |