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>
This commit is contained in:
Karel Zak 2019-04-17 10:10:46 +02:00
parent 2c308875a7
commit 2da48ba3cc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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