Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: internal: sp: added environment initialization calls #7968

Merged
merged 6 commits into from
Sep 26, 2023
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 @@ -612,6 +621,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 @@ -773,6 +784,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
Loading