mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Since 81a9745fb3
, the assert condition is
evaluated twice. This leads to unexpected behavior when cond has a side
effect like publishing a message or creating a log stream or filter.
Found while using the following in ad-hoc testing code and wondering
why two messages were published.
assert publish(Cluster::worker_topic, hello, "abc")
6 lines
310 B
Text
6 lines
310 B
Text
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
|
zeek_init
|
|
returning true
|
|
assertion_result, T, always_true(), always true, <...>/assert-hook.zeek, 23
|
|
returning false
|
|
assertion_result, F, always_false(), always false, <...>/assert-hook.zeek, 24
|