zeek/testing/btest/core/option-redef.bro
2018-08-10 11:53:36 -07:00

16 lines
292 B
Text

# @TEST-EXEC: bro %INPUT
# @TEST-EXEC: btest-diff .stdout
# options are allowed to be redef-able.
# And they are even redef-able by default.
option testopt = 5 &redef;
redef testopt = 6;
option anotheropt = 6;
redef anotheropt = 7;
event bro_init() {
print testopt;
print anotheropt;
}