mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
btest: Skip core.script-args under TSAN
TSAN may re-execute the executable when the memory layout doesn't fullfill requirements, causing argument confusion when that happens. Closes #3774.
This commit is contained in:
parent
2c62ecf57d
commit
3e6511af41
2 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,10 @@
|
|||
# the script differently, leading to complaints that there are no scripts.
|
||||
# @TEST-REQUIRES: test "${ZEEK_USE_CPP}" != "1"
|
||||
|
||||
# TSAN may re-execute the executable when the memory layout doesn't fullfill
|
||||
# requirements, causing argument confusion when that happens (see #3774).
|
||||
# @TEST-REQUIRES: ! have-tsan
|
||||
|
||||
# @TEST-EXEC: printf '#!' > test.zeek
|
||||
# @TEST-EXEC: printf "$BUILD/src/zeek -b --\n" >> test.zeek
|
||||
# @TEST-EXEC: cat %INPUT >> test.zeek
|
||||
|
|
7
testing/scripts/have-tsan
Executable file
7
testing/scripts/have-tsan
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if grep -q "ZEEK_SANITIZERS:STRING=.*thread.*" "${BUILD}"/CMakeCache.txt; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exit 1
|
Loading…
Add table
Add a link
Reference in a new issue