We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3625b0 commit 4285472Copy full SHA for 4285472
1 file changed
tests/runtime/out_logdna.c
@@ -695,6 +695,14 @@ void flb_test_backward_compat()
695
* Test: repeated start/push/stop/destroy cycles to verify
696
* proper resource cleanup (no crashes from leaks or double-free).
697
*/
698
+static void cb_lifecycle_noop(void *ctx, int ffd, int res_ret,
699
+ void *res_data, size_t res_size,
700
+ void *data)
701
+{
702
+ flb_sds_t json = res_data;
703
+ flb_sds_destroy(json);
704
+}
705
+
706
void flb_test_lifecycle()
707
{
708
int i;
@@ -718,6 +726,9 @@ void flb_test_lifecycle()
718
726
"api_key", "test-key",
719
727
NULL);
720
728
729
+ flb_output_set_test(ctx, out_ffd, "formatter",
730
+ cb_lifecycle_noop, NULL, NULL);
731
721
732
ret = flb_start(ctx);
722
733
TEST_CHECK(ret == 0);
723
734
0 commit comments