zeek/testing/btest/language/timeout.bro
Daniel Thayer 90281a2423 Add tests of the Bro scripting language
Added tests of all built-in Bro data types (including different
representations of constant values, and max./min. values), keywords, and
operators (including special properties of certain operators, such as
short-circuit evaluation and associativity).
2012-08-24 11:32:49 -05:00

19 lines
234 B
Text

# @TEST-EXEC: bro %INPUT >out
# @TEST-EXEC: btest-diff out
event bro_init()
{
local h1: addr = 1.2.3.4;
when ( local h1name = lookup_addr(h1) )
{
print "lookup successful";
}
timeout 3 secs
{
print "timeout";
}
}