mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38: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
26 lines
287 B
Text
26 lines
287 B
Text
#
|
|
# @TEST-EXEC: zeek -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event zeek_init()
|
|
{
|
|
local a = vector( 5, 3, 8 );
|
|
|
|
print |a|;
|
|
|
|
if ( resize(a, 5) != 3 )
|
|
exit(1);
|
|
|
|
print |a|;
|
|
|
|
if ( resize(a, 0) != 5 )
|
|
exit(1);
|
|
|
|
print |a|;
|
|
|
|
if ( resize(a, 7) != 0 )
|
|
exit(1);
|
|
|
|
print |a|;
|
|
|
|
}
|