mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Address review comments and small updates for DNS warnings
This commit addresses review feedback for DH-4155. Furthermore it fixes test failures, and adds a new test for the is_event_handled bif.
This commit is contained in:
parent
9f72353a41
commit
13f042cc27
6 changed files with 37 additions and 8 deletions
3
testing/btest/Baseline/bifs.is_event_handled/err
Normal file
3
testing/btest/Baseline/bifs.is_event_handled/err
Normal file
|
@ -0,0 +1,3 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
error in <...>/is_event_handled.zeek, line 11: is_event_handled: 'myfunc1' is not an event (is_event_handled(myfunc1))
|
||||
error in <...>/is_event_handled.zeek, line 12: is_event_handled: 'conn_id' is not an event (is_event_handled(conn_id))
|
5
testing/btest/Baseline/bifs.is_event_handled/out
Normal file
5
testing/btest/Baseline/bifs.is_event_handled/out
Normal file
|
@ -0,0 +1,5 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
T
|
||||
F
|
||||
F
|
||||
F
|
|
@ -385,6 +385,7 @@ scripts/base/init-default.zeek
|
|||
scripts/base/protocols/dns/__load__.zeek
|
||||
scripts/base/protocols/dns/consts.zeek
|
||||
scripts/base/protocols/dns/main.zeek
|
||||
scripts/base/protocols/dns/check-event-handlers.zeek
|
||||
scripts/base/protocols/finger/__load__.zeek
|
||||
scripts/base/protocols/finger/spicy-events.zeek
|
||||
scripts/base/protocols/finger/main.zeek
|
||||
|
|
12
testing/btest/bifs/is_event_handled.zeek
Normal file
12
testing/btest/bifs/is_event_handled.zeek
Normal file
|
@ -0,0 +1,12 @@
|
|||
# @TEST-EXEC: zeek -b %INPUT >out 2>err
|
||||
# @TEST-EXEC: btest-diff out
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff err
|
||||
|
||||
function myfunc1(a: addr, b: addr): int
|
||||
{
|
||||
}
|
||||
|
||||
print is_event_handled("zeek_init"); # T
|
||||
print is_event_handled("dns_EDNS_cookie"); # F
|
||||
print is_event_handled("myfunc1"); # builtin error
|
||||
print is_event_handled("conn_id"); # builtin error
|
Loading…
Add table
Add a link
Reference in a new issue