mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
10 lines
473 B
Text
10 lines
473 B
Text
# This test should print a warning that the event handler is never invoked.
|
|
# @TEST-REQUIRES: test "${ZEEK_USE_CPP}" != "1"
|
|
# @TEST-REQUIRES: $SCRIPTS/have-spicy # This test logs uninvoked event handlers, so disable it if Spicy and its plugin is unavailable.
|
|
# @TEST-EXEC: zeek -b %INPUT check_for_unused_event_handlers=T
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-sort-and-remove-abspath btest-diff .stderr
|
|
|
|
event this_is_never_used()
|
|
{
|
|
print "not even once";
|
|
}
|