|
18 | 18 | * limitations under the License. |
19 | 19 | */ |
20 | 20 |
|
| 21 | +#include <fluent-bit.h> |
21 | 22 | #include <fluent-bit/flb_info.h> |
22 | 23 | #include <fluent-bit/flb_mem.h> |
23 | 24 | #include <fluent-bit/flb_pack.h> |
@@ -200,6 +201,8 @@ static void invalid_queries() |
200 | 201 | struct flb_sp *sp; |
201 | 202 | struct flb_sp_task *task; |
202 | 203 |
|
| 204 | + flb_init_env(); |
| 205 | + |
203 | 206 | /* Total number of checks for invalid queries */ |
204 | 207 | checks = sizeof(invalid_query_checks) / sizeof(char *); |
205 | 208 |
|
@@ -244,6 +247,8 @@ static void test_select_keys() |
244 | 247 | WSADATA wsa_data; |
245 | 248 | #endif |
246 | 249 |
|
| 250 | + flb_init_env(); |
| 251 | + |
247 | 252 | config = flb_calloc(1, sizeof(struct flb_config)); |
248 | 253 | if (!config) { |
249 | 254 | flb_errno(); |
@@ -330,6 +335,8 @@ static void test_select_subkeys() |
330 | 335 | WSADATA wsa_data; |
331 | 336 | #endif |
332 | 337 |
|
| 338 | + flb_init_env(); |
| 339 | + |
333 | 340 | config = flb_calloc(1, sizeof(struct flb_config)); |
334 | 341 | if (!config) { |
335 | 342 | flb_errno(); |
@@ -458,6 +465,8 @@ static void test_window() |
458 | 465 | WSADATA wsa_data; |
459 | 466 | #endif |
460 | 467 |
|
| 468 | + flb_init_env(); |
| 469 | + |
461 | 470 | config = flb_calloc(1, sizeof(struct flb_config)); |
462 | 471 | if (!config) { |
463 | 472 | flb_errno(); |
@@ -639,6 +648,8 @@ static void test_snapshot() |
639 | 648 | WSADATA wsa_data; |
640 | 649 | #endif |
641 | 650 |
|
| 651 | + flb_init_env(); |
| 652 | + |
642 | 653 | config = flb_calloc(1, sizeof(struct flb_config)); |
643 | 654 | if (!config) { |
644 | 655 | flb_errno(); |
@@ -800,6 +811,8 @@ static void test_conv_from_str_to_num() |
800 | 811 | #endif |
801 | 812 | out_buf.buffer = NULL; |
802 | 813 |
|
| 814 | + flb_init_env(); |
| 815 | + |
803 | 816 | config = flb_config_init(); |
804 | 817 | config->evl = mk_event_loop_create(256); |
805 | 818 |
|
|
0 commit comments