mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

- Generally increased the time allowed before they timeout. - For tests w/ a clear termination condition (most of them), made timeouts result in a test failure. - Seemed to be a race in some cases between tests generating output and the input reader stream getting removed/closed, so moved stream removal closer to termination time, when all output should be available.
26 lines
506 B
Text
26 lines
506 B
Text
# @TEST-EXEC: btest-bg-run bro bro -b %INPUT
|
|
# @TEST-EXEC: btest-bg-wait -k 5
|
|
# @TEST-EXEC: btest-diff bro/.stderr
|
|
|
|
redef exit_only_after_terminate = T;
|
|
|
|
global outfile: file;
|
|
global try: count;
|
|
|
|
module A;
|
|
|
|
type Val: record {
|
|
i: int;
|
|
b: bool;
|
|
};
|
|
|
|
event line(description: Input::EventDescription, tpe: Input::Event, i: int, b: bool)
|
|
{
|
|
}
|
|
|
|
event bro_init()
|
|
{
|
|
try = 0;
|
|
outfile = open("../out");
|
|
Input::add_event([$source="does-not-exist.dat", $name="input", $fields=Val, $ev=line, $want_record=F]);
|
|
}
|