mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00

This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
16 lines
432 B
Text
16 lines
432 B
Text
# @TEST-EXEC-FAIL: zeek -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;
|
|
}
|