mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
OpaqueVal: Register TelemetryVals, too
Even if they are not serializable, OpaqueMgr::TypeID() is called during BuildJSON() for them and that previously just aborted. Closes #3473
This commit is contained in:
parent
2284ad4b85
commit
aa5d7f5a73
6 changed files with 55 additions and 0 deletions
8
testing/btest/coverage/global-ids-to-json.zeek
Normal file
8
testing/btest/coverage/global-ids-to-json.zeek
Normal file
|
@ -0,0 +1,8 @@
|
|||
# @TEST-DOC: Ensure to_json(global_ids()) does not abort and do not expect any stderr output.
|
||||
# @TEST-EXEC: unset ZEEK_ALLOW_INIT_ERRORS; zeek %INPUT
|
||||
# @TEST-EXEC: btest-diff .stderr
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
assert |to_json(global_ids())| > 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue