zeek/testing/btest/language/timeout.zeek
Daniel Thayer 1a74516db1 Rename all BRO-prefixed environment variables
For backward compatibility when reading values, we first check
the ZEEK-prefixed value, and if not set, then check the corresponding
BRO-prefixed value.
2019-05-22 00:12:31 -05:00

19 lines
284 B
Text

# @TEST-EXEC: unset ZEEK_DNS_FAKE && unset BRO_DNS_FAKE && zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
event zeek_init()
{
local h1: addr = 1.2.3.4;
when ( local h1name = lookup_addr(h1) )
{
print "lookup successful";
}
timeout 3 secs
{
print "timeout";
}
}