mirror of
https://https.git.savannah.gnu.org/git/grep.git
synced 2026-01-26 15:39:06 +00:00
tests: skip stack-overflow test when built with ASAN
* tests/stack-overflow: Skip this test when the binary was built with ASAN, to avoid spurious failures.
This commit is contained in:
parent
76e63d9f75
commit
17af3bd4db
@ -8,6 +8,15 @@ case $host_triplet in
|
||||
skip_ 'our stack-overflow detection does not work on this system';;
|
||||
esac
|
||||
|
||||
# When compiled with ASAN, skip this test, because (on Fedora 32) it
|
||||
# would fail due to output like this on stderr:
|
||||
# +==2176827==WARNING: ASan is ignoring requested __asan_handle_no_return:
|
||||
# stack top: 0x7ffc48f20000; bottom 0x000000e25000; size: 0x7ffc480fb000 (140721517473792)
|
||||
# +False positive error reports may follow
|
||||
# +For details see https://github.com/google/sanitizers/issues/189
|
||||
ASAN_OPTIONS=help=true grep --version 2>&1 | grep -q AddressSanitizer \
|
||||
&& skip_ 'avoid false failure when built with ASAN'
|
||||
|
||||
echo grep: stack overflow > exp || framework_failure_
|
||||
|
||||
# Limit stack size. Otherwise, it appears to be too hard to overflow the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user