mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
btest/broker/publish-errors: Avoid exit(0)
Calling exit() doesn't properly shutdown the manager instances and TSAN reports a leaked thread. Just avoid this for now by using terminate() instead.
This commit is contained in:
parent
b1157e4e03
commit
2e30f87e33
3 changed files with 3 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
error in ../send.zeek, line 18: expected Broker::Event, got Cluster::Event (Broker::publish(/test/topic, <internal>::evt.18))
|
||||
received termination signal
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
error in ../send.zeek, line 18: expected Broker::Event, got Cluster::Event (Broker::publish(/test/topic, evt))
|
||||
received termination signal
|
||||
|
|
|
@ -31,7 +31,7 @@ event Broker::peer_added(endpoint: Broker::EndpointInfo, msg: string)
|
|||
local evt = Cluster::make_event(my_event, 42);
|
||||
local r = Broker::publish("/test/topic", evt);
|
||||
assert ! r; # Supposed to fail.
|
||||
exit(0);
|
||||
terminate();
|
||||
}
|
||||
# @TEST-END-FILE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue