Skip to content

Commit 4dd7d6d

Browse files
author
Leonardo Alminana
committed
tests: internal: sp: added environment initialization calls
Signed-off-by: Leonardo Alminana <[email protected]>
1 parent 2610ef8 commit 4dd7d6d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/internal/stream_processor.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* limitations under the License.
1919
*/
2020

21+
#include <fluent-bit.h>
2122
#include <fluent-bit/flb_info.h>
2223
#include <fluent-bit/flb_mem.h>
2324
#include <fluent-bit/flb_pack.h>
@@ -200,6 +201,8 @@ static void invalid_queries()
200201
struct flb_sp *sp;
201202
struct flb_sp_task *task;
202203

204+
flb_init_env();
205+
203206
/* Total number of checks for invalid queries */
204207
checks = sizeof(invalid_query_checks) / sizeof(char *);
205208

@@ -244,6 +247,8 @@ static void test_select_keys()
244247
WSADATA wsa_data;
245248
#endif
246249

250+
flb_init_env();
251+
247252
config = flb_calloc(1, sizeof(struct flb_config));
248253
if (!config) {
249254
flb_errno();
@@ -330,6 +335,8 @@ static void test_select_subkeys()
330335
WSADATA wsa_data;
331336
#endif
332337

338+
flb_init_env();
339+
333340
config = flb_calloc(1, sizeof(struct flb_config));
334341
if (!config) {
335342
flb_errno();
@@ -458,6 +465,8 @@ static void test_window()
458465
WSADATA wsa_data;
459466
#endif
460467

468+
flb_init_env();
469+
461470
config = flb_calloc(1, sizeof(struct flb_config));
462471
if (!config) {
463472
flb_errno();
@@ -639,6 +648,8 @@ static void test_snapshot()
639648
WSADATA wsa_data;
640649
#endif
641650

651+
flb_init_env();
652+
642653
config = flb_calloc(1, sizeof(struct flb_config));
643654
if (!config) {
644655
flb_errno();
@@ -800,6 +811,8 @@ static void test_conv_from_str_to_num()
800811
#endif
801812
out_buf.buffer = NULL;
802813

814+
flb_init_env();
815+
803816
config = flb_config_init();
804817
config->evl = mk_event_loop_create(256);
805818

0 commit comments

Comments
 (0)