mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
Make old comm. system usages an error unless old_comm_usage_is_ok is set
This commit is contained in:
parent
3c6afc8409
commit
c11039cb73
9 changed files with 114 additions and 1 deletions
2
testing/btest/Baseline/core.old_comm_usage/out
Normal file
2
testing/btest/Baseline/core.old_comm_usage/out
Normal file
|
@ -0,0 +1,2 @@
|
|||
warning in /Users/jon/projects/bro/bro/testing/btest/.tmp/core.old_comm_usage/old_comm_usage.bro, line 6: deprecated (terminate_communication)
|
||||
fatal error: Detected old, deprecated communication system usages that will not work unless you explicitly take action to initizialize and set up the old comm. system. Set the 'old_comm_usage_is_ok' flag to bypass this error if you've taken such actions.
|
7
testing/btest/core/old_comm_usage.bro
Normal file
7
testing/btest/core/old_comm_usage.bro
Normal file
|
@ -0,0 +1,7 @@
|
|||
# @TEST-EXEC-FAIL: bro -b %INPUT >out 2>&1
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
terminate_communication();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue