mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

TSAN may re-execute the executable when the memory layout doesn't fullfill requirements, causing argument confusion when that happens. Closes #3774.
22 lines
728 B
Text
22 lines
728 B
Text
# Don't run for C++ scripts, since script invocation of Zeek hashes
|
|
# 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
|
|
# @TEST-EXEC: chmod u+x test.zeek
|
|
|
|
# @TEST-EXEC: zeek -b -- %INPUT -a -b -c >out
|
|
# @TEST-EXEC: $(dirname %INPUT)/test.zeek -d -e -f >>out
|
|
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event zeek_init()
|
|
{
|
|
print zeek_script_args;
|
|
}
|