zeek/testing/btest/core/option-redef.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

17 lines
297 B
Plaintext

# @TEST-EXEC: zeek -b %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 zeek_init() {
print testopt;
print anotheropt;
}