zeek/testing/btest/opt/opt-no-func2.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

15 lines
303 B
Plaintext

# @TEST-EXEC-FAIL: zeek -b -O ZAM --optimize-files='my_func' %INPUT
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
# Make sure that --optimize-func anchors the regex.
function my_func2()
{
print "I shouldn't match!";
}
event zeek_init()
{
print zeek_init;
}