From: Karel Zak Date: Wed, 17 Apr 2019 08:10:46 +0000 (+0200) Subject: tests: use TS_ENABLE_ASAN in tests to detect ASAN X-Git-Tag: v2.34-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2da48ba3cce141fa77c31ca70c5477d4ec98e190;p=thirdparty%2Futil-linux.git 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 --- diff --git a/tests/ts/kill/name_to_number b/tests/ts/kill/name_to_number index fd2aaafe0a..86e6445133 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 38858f47b0..ff17bccc6d 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