Skip to content

Commit

Permalink
tests: internal: sp: added environment initialization calls
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Sep 26, 2023
1 parent 61dbbd8 commit 8269d80
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/internal/stream_processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* limitations under the License.
*/

#include <fluent-bit.h>
#include <fluent-bit/flb_info.h>
#include <fluent-bit/flb_mem.h>
#include <fluent-bit/flb_pack.h>
Expand Down Expand Up @@ -200,6 +201,8 @@ static void invalid_queries()
struct flb_sp *sp;
struct flb_sp_task *task;

flb_init_env();

/* Total number of checks for invalid queries */
checks = sizeof(invalid_query_checks) / sizeof(char *);

Expand Down Expand Up @@ -244,6 +247,8 @@ static void test_select_keys()
WSADATA wsa_data;
#endif

flb_init_env();

config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
Expand Down Expand Up @@ -330,6 +335,8 @@ static void test_select_subkeys()
WSADATA wsa_data;
#endif

flb_init_env();

config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
Expand Down Expand Up @@ -458,6 +465,8 @@ static void test_window()
WSADATA wsa_data;
#endif

flb_init_env();

config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
Expand Down Expand Up @@ -639,6 +648,8 @@ static void test_snapshot()
WSADATA wsa_data;
#endif

flb_init_env();

config = flb_calloc(1, sizeof(struct flb_config));
if (!config) {
flb_errno();
Expand Down Expand Up @@ -800,6 +811,8 @@ static void test_conv_from_str_to_num()
#endif
out_buf.buffer = NULL;

flb_init_env();

config = flb_config_init();
config->evl = mk_event_loop_create(256);

Expand Down

0 comments on commit 8269d80

Please sign in to comment.