Skip to content

Commit 52a4692

Browse files
tests: runtime: filter_checklist: fix flb_test_mode_partial if not FLB_HAVE_SQLDB
Signed-off-by: Thomas Devoogdt <[email protected]>
1 parent 328967e commit 52a4692

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/runtime/filter_checklist.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ void flb_test_ignore_case(void)
348348
test_ctx_destroy(ctx);
349349
}
350350

351+
#ifdef FLB_HAVE_SQLDB
351352
void flb_test_mode_partial(void)
352353
{
353354
int ret;
@@ -394,12 +395,15 @@ void flb_test_mode_partial(void)
394395

395396
test_ctx_destroy(ctx);
396397
}
398+
#endif
397399

398400
TEST_LIST = {
399401
{"lookup_key", flb_test_lookup_key},
400402
{"lookup_keys", flb_test_lookup_keys},
401403
{"records", flb_test_records},
402404
{"ignore_case", flb_test_ignore_case},
405+
#ifdef FLB_HAVE_SQLDB
403406
{"mode_partial", flb_test_mode_partial},
407+
#endif
404408
{NULL, NULL}
405409
};

0 commit comments

Comments
 (0)