Make old comm. system usages an error unless old_comm_usage_is_ok is set

This commit is contained in:
Jon Siwek 2018-06-15 17:14:33 -05:00
parent 3c6afc8409
commit c11039cb73
9 changed files with 114 additions and 1 deletions

View 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.

View 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();
}