zeek/testing/btest/language/subnet-errors.zeek
Jon Siwek 98d94ec785 Enable leak checks for btests that produce runtime exceptions
These were previously reporting leaks due to various allocations not
getting cleaned up during the stack unwind, but at the current state of
the transition toward IntrusivePtr usage, theses tests no longer leak.
2020-03-23 21:51:12 -07:00

26 lines
371 B
Text

# @TEST-EXEC: zeek -b %INPUT >out 2>&1
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
event zeek_init()
{
local i = 32;
print 1.2.3.4/i;
++i;
print 1.2.3.4/i;
print "init 1";
}
event zeek_init()
{
local i = 128;
print [::]/i;
++i;
print [::]/i;
print "init 1";
}
event zeek_init() &priority=-10
{
print "init last";
}