Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/internal/processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <fluent-bit/flb_bucket_queue.h>
#include <fluent-bit/flb_storage.h>
#include <fluent-bit/flb_input.h>
#include <fluent-bit/flb_compat.h>

#include "flb_tests_internal.h"

Expand Down Expand Up @@ -136,6 +137,12 @@ static void processor_private_inputs_use_main_loop()

flb_init_env();

#ifdef _WIN32
WSADATA wsa;
int wret = WSAStartup(MAKEWORD(2,2), &wsa);
TEST_CHECK(wret == 0);
#endif

config = flb_config_init();
TEST_CHECK(config != NULL);

Expand Down Expand Up @@ -183,6 +190,10 @@ static void processor_private_inputs_use_main_loop()

flb_storage_destroy(config);
flb_config_exit(config);

#ifdef _WIN32
WSACleanup();
#endif
}

TEST_LIST = {
Expand Down
Loading