testing/missing-enum-value: redef exit_only_after_terminate=T

Seems this was the intention all along as the corresponding terminate()
call is there.
This commit is contained in:
Arne Welzel 2022-07-25 18:36:02 +02:00
parent 11cde53373
commit 07f1895925
2 changed files with 6 additions and 1 deletions

View file

@ -3,3 +3,4 @@ warning: Value 'asdf' for source 'thread ../configfile/Input::READER_CONFIG' is
error: SendEvent for event InputConfig::new_value failed
warning: Value '1234' for source 'thread ../configfile/Input::READER_CONFIG' is not a valid enum.
error: SendEvent for event InputConfig::new_value failed
received termination signal

View file

@ -13,6 +13,8 @@ no_color_vec
@load base/frameworks/config
redef exit_only_after_terminate=T;
type Color: enum { Red, Green, Blue, };
option mycolors = set(Red, Green);
@ -23,7 +25,9 @@ option bad_color_vec: vector of Color = { Red };
option no_color_vec: vector of Color = { Red };
event zeek_init()
{ Config::read_config("../configfile"); }
{
Config::read_config("../configfile");
}
event Input::end_of_data(name: string, source:string)
{