Skip to content

Commit 5278995

Browse files
committed
tests: internal: multiline: Add a NULL assertion
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent d8decf0 commit 5278995

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/internal/multiline.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,12 @@ static void test_buffer_limit_truncation()
14841484

14851485
/* Use the dummy 'docker' parser for JSON extraction */
14861486
p = flb_parser_get("docker", config);
1487+
TEST_CHECK(p != NULL);
1488+
if (!p) {
1489+
/* Built-in 'docker' parser unavailable in this build; skip gracefully */
1490+
flb_config_exit(config);
1491+
return;
1492+
}
14871493

14881494
/* This parser will trigger on any content, ensuring concatenation. */
14891495
ml = flb_ml_create(config, "limit-test");

0 commit comments

Comments
 (0)