mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

- Use `-b` most everywhere, it will save time. - Start some intel tests upon the input file being fully read instead of at an arbitrary time. - Improve termination condition for some sumstats/cluster tests. - Filter uninteresting output from some supervisor tests. - Test for `notice_policy.log` is no longer needed.
19 lines
402 B
Text
19 lines
402 B
Text
# @TEST-EXEC: zeek -b %INPUT
|
|
|
|
# This regression test checks a special case in the vector code. In this case
|
|
# UnaryExpr will be called with a Type() of any. Tests succeeds if it does not
|
|
# crash Zeek.
|
|
|
|
type OptionCacheValue: record {
|
|
val: any;
|
|
};
|
|
|
|
function set_me(val: any) {
|
|
local a = OptionCacheValue($val=val);
|
|
print a;
|
|
}
|
|
|
|
event zeek_init() {
|
|
local b: vector of count = {1, 2, 3};
|
|
set_me(b);
|
|
}
|