[PATCH 5/6] tests: skip kill -SEGV test when running AddressSanitizer

Sami Kerola
2014-11-10T21:50:16Z

Sending signal indicating invalid memory reference makes AddressSanitizer
to report false positive test failure.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
tests/ts/kill/name_to_number | 3 +++
1 file changed, 3 insertions(+)

diff --git a/tests/ts/kill/name_to_number b/tests/ts/kill/name_to_number
index 9a370bb..cde55c9 100755
--- a/tests/ts/kill/name_to_number
+++ b/tests/ts/kill/name_to_number
@@ -33,6 +33,9 @@ for SIG in $($TS_CMD_KILL -L); do
EXPECTED=$SIG
continue
fi
+ if [ -f "$ASAN_SYMBOLIZER_PATH" ] && [ "x$SIG" = "xSEGV" ]; then
+ continue
+ fi
if [ "x$SIG" = "xSTOP" ] || [ "x$SIG" = "xKILL" ]; then
continue
fi
--
2.1.3