mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00

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.
8 lines
229 B
Text
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";
|
|
}
|