diff --git a/tests/internal/parser.c b/tests/internal/parser.c index 6a560db716c..b7b4eab876b 100644 --- a/tests/internal/parser.c +++ b/tests/internal/parser.c @@ -231,7 +231,7 @@ void test_parser_time_lookup() continue; } - epoch = flb_parser_tm2time(&tm); + epoch = flb_parser_tm2time(&tm, FLB_FALSE); epoch -= year_diff; TEST_CHECK(t->epoch == epoch); TEST_CHECK(t->frac_seconds == ns); diff --git a/tests/internal/parser_json.c b/tests/internal/parser_json.c index 5a9b6eadbfe..f09f9675794 100644 --- a/tests/internal/parser_json.c +++ b/tests/internal/parser_json.c @@ -171,7 +171,7 @@ void test_basic() } parser = flb_parser_create("json", "json", NULL, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -223,7 +223,7 @@ void test_time_key() } parser = flb_parser_create("json", "json", NULL, FLB_FALSE, "%Y-%m-%dT%H:%M:%S.%L", "time", NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -284,7 +284,7 @@ void test_time_keep() } parser = flb_parser_create("json", "json", NULL, FLB_FALSE, "%Y-%m-%dT%H:%M:%S.%L", "time", NULL, - FLB_TRUE /*time_keep */, FLB_FALSE, FLB_FALSE, + FLB_TRUE /*time_keep */, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -365,7 +365,7 @@ void test_types_is_not_supported() types->type = FLB_PARSER_TYPE_HEX; parser = flb_parser_create("json", "json", NULL, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, types, 1, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -450,7 +450,7 @@ void test_decode_field_json() } parser = flb_parser_create("json", "json", NULL, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, decoder, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -505,7 +505,7 @@ void test_time_key_kept_if_parse_fails() } parser = flb_parser_create("json", "json", NULL, FLB_FALSE, time_format, "time", NULL, - FLB_FALSE, FLB_TRUE, FLB_FALSE, + FLB_FALSE, FLB_TRUE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); diff --git a/tests/internal/parser_logfmt.c b/tests/internal/parser_logfmt.c index ea363c53ab2..3e644ee2d53 100644 --- a/tests/internal/parser_logfmt.c +++ b/tests/internal/parser_logfmt.c @@ -171,7 +171,7 @@ void test_basic() } parser = flb_parser_create("logfmt", "logfmt", NULL, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -223,7 +223,7 @@ void test_time_key() } parser = flb_parser_create("logfmt", "logfmt", NULL, FLB_FALSE, "%Y-%m-%dT%H:%M:%S.%L", "time", NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -284,7 +284,7 @@ void test_time_keep() } parser = flb_parser_create("logfmt", "logfmt", NULL, FLB_FALSE, "%Y-%m-%dT%H:%M:%S.%L", "time", NULL, - FLB_TRUE /*time_keep */, FLB_FALSE, FLB_FALSE, + FLB_TRUE /*time_keep */, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -361,7 +361,7 @@ void test_types() types->type = FLB_PARSER_TYPE_HEX; parser = flb_parser_create("logfmt", "logfmt", NULL, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, types, 1, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); diff --git a/tests/internal/parser_ltsv.c b/tests/internal/parser_ltsv.c index 3f9170518aa..c4592c7f2ae 100644 --- a/tests/internal/parser_ltsv.c +++ b/tests/internal/parser_ltsv.c @@ -171,7 +171,7 @@ void test_basic() } parser = flb_parser_create("ltsv", "ltsv", NULL, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -223,7 +223,7 @@ void test_time_key() } parser = flb_parser_create("ltsv", "ltsv", NULL, FLB_FALSE, "%Y-%m-%dT%H:%M:%S.%L", "time", NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -284,7 +284,7 @@ void test_time_keep() } parser = flb_parser_create("ltsv", "ltsv", NULL, FLB_FALSE, "%Y-%m-%dT%H:%M:%S.%L", "time", NULL, - FLB_TRUE /*time_keep */, FLB_FALSE, FLB_FALSE, + FLB_TRUE /*time_keep */, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -361,7 +361,7 @@ void test_types() types->type = FLB_PARSER_TYPE_HEX; parser = flb_parser_create("ltsv", "ltsv", NULL, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, types, 1, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -446,7 +446,7 @@ void test_decode_field_json() } parser = flb_parser_create("ltsv", "ltsv", NULL, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, decoder, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); diff --git a/tests/internal/parser_regex.c b/tests/internal/parser_regex.c index 2283231ce57..f919dd21587 100644 --- a/tests/internal/parser_regex.c +++ b/tests/internal/parser_regex.c @@ -172,7 +172,7 @@ void test_basic() } parser = flb_parser_create("regex", "regex", regex, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -225,7 +225,7 @@ void test_time_key() } parser = flb_parser_create("regex", "regex", regex, FLB_FALSE, "%Y-%m-%dT%H:%M:%S.%L", "time", NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -287,7 +287,7 @@ void test_time_keep() } parser = flb_parser_create("regex", "regex", regex, FLB_FALSE, "%Y-%m-%dT%H:%M:%S.%L", "time", NULL, - FLB_TRUE /*time_keep */, FLB_FALSE, FLB_FALSE, + FLB_TRUE /*time_keep */, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -365,7 +365,7 @@ void test_types() types->type = FLB_PARSER_TYPE_HEX; parser = flb_parser_create("regex", "regex", regex, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, types, 1, NULL, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed"); @@ -451,7 +451,7 @@ void test_decode_field_json() } parser = flb_parser_create("regex", "regex", regex, FLB_FALSE, NULL, NULL, NULL, - FLB_FALSE, FLB_FALSE, FLB_FALSE, + FLB_FALSE, FLB_FALSE, FLB_FALSE, FLB_FALSE, NULL, 0, decoder, config); if (!TEST_CHECK(parser != NULL)) { TEST_MSG("flb_parser_create failed");