zeek/testing/btest/scripts/base/frameworks
Arne Welzel 45f5a4c1b8 logging/Ascii: Fix abort() for non-existing postrotation functions
When looking up the postprocessor function from shadow files, id::find_func()
would abort() if the function wasn't available instead of falling back
to the default postprocessor.

Fix by using id::find() and checking the type explicitly and also adding a
strict type check while at it.

This issue was tickled by loading the json-streaming-logs package,
Zeek creating shadow files containing its custom postprocessor function,
then restarting Zeek without the package loaded.

Closes #4562
2025-06-16 14:55:49 +02:00
..
analyzer Analyzer failure logging: tweaks and test fixes 2025-06-03 15:56:42 +01:00
cluster minor BTest maintenance updates for -O gen-C++ 2025-05-31 12:52:44 -07:00
config minor BTest maintenance updates for -O gen-C++ 2025-05-31 12:52:44 -07:00
control testing/btest/*zeek: Comment all @TEST lines 2025-04-17 16:30:23 +02:00
file-analysis Btests: don't use -C in Zeek invocations that don't actually need it 2025-06-06 13:46:45 -07:00
input testing/btest: Fix double commented @TEST- lines 2025-05-06 14:06:29 +02:00
intel intel: Add indicator_inserted and indicator_removed hooks 2025-06-02 09:50:48 +02:00
logging logging/Ascii: Fix abort() for non-existing postrotation functions 2025-06-16 14:55:49 +02:00
netcontrol minor BTest maintenance updates for -O gen-C++ 2025-05-31 12:52:44 -07:00
notice btest/frameworks/notice: Use generic cluster-layout.zeek 2025-05-20 20:30:01 +02:00
openflow minor BTest maintenance updates for -O gen-C++ 2025-05-31 12:52:44 -07:00
packet-filter General btest cleanup 2020-08-11 11:26:22 -07:00
reporter General btest cleanup 2020-08-11 11:26:22 -07:00
software updates to btests to support switch to expression-based initialization 2022-03-23 15:36:35 -07:00
storage Btests: don't use -C in Zeek invocations that don't actually need it 2025-06-06 13:46:45 -07:00
sumstats btest/frameworks/sumstats: Use generic cluster-layout.zeek 2025-05-20 20:30:01 +02:00
telemetry Btests: don't use -C in Zeek invocations that don't actually need it 2025-06-06 13:46:45 -07:00