mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00

* origin/topic/seth/zeek_init: Some more testing fixes. Update docs and tests for bro_(init|done) -> zeek_(init|done) Implement the zeek_init handler.
15 lines
276 B
Text
15 lines
276 B
Text
# @TEST-EXEC: bro -b %INPUT >output 2>&1 || echo $? >>output
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
|
|
|
type MyRecordType: record
|
|
{
|
|
a: count;
|
|
b: count;
|
|
};
|
|
|
|
event zeek_init()
|
|
{
|
|
local x = MyRecordType($a=1, $b=2);
|
|
|
|
delete x$c;
|
|
}
|