zeek/testing/btest/core/check-unused-event-handlers.test
Jon Siwek 521f54c4f0 Fix check_for_unused_event_handlers option.
The format string given to the reporter warning call wasn't printing
the handler names.  Also changed it so that each warning message has
the full context of the warning.
2011-08-11 11:34:42 -05:00

8 lines
229 B
Text

# This test should print a warning that the event handler is never invoked.
# @TEST-EXEC: bro -b %INPUT check_for_unused_event_handlers=T
# @TEST-EXEC: btest-diff .stderr
event this_is_never_used()
{
print "not even once";
}