mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +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.
16 lines
431 B
Text
16 lines
431 B
Text
# @TEST-EXEC-FAIL: bro -b %INPUT >out 2>&1
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath" btest-diff out
|
|
|
|
type MyRecord: record {
|
|
a: string;
|
|
b: count;
|
|
c: bool &default = T;
|
|
};
|
|
|
|
event zeek_init()
|
|
{
|
|
local rec: MyRecord = record($a = "a string", $b = 6);
|
|
local rec2: MyRecord = (F) ? MyRecord($a = "a string", $b = 6) :
|
|
record($a = "a different string", $b = 7);
|
|
rec2$c = F;
|
|
}
|