tests: internal: fstore: added config initialization to
prevent macos crashes.
*/
#include <fluent-bit/flb_info.h>
+#include <fluent-bit/flb_config.h>
#include <fluent-bit/flb_fstore.h>
#include <fluent-bit/flb_mem.h>
#include <fluent-bit/flb_compat.h>
#define FSF_STORE_PATH "/tmp/flb-fstore"
#endif
+static void initialization_crutch()
+{
+ struct flb_config *config;
+
+ config = flb_config_init();
+
+ if (config == NULL) {
+ return;
+ }
+
+ flb_config_exit(config);
+}
void cb_all()
{
int ret;
@@ -47,6 +60,8 @@ void cb_all()
struct flb_fstore_stream *st;
struct flb_fstore_file *fsf;
+ initialization_crutch();
+
cio_utils_recursive_delete(FSF_STORE_PATH);
fs = flb_fstore_create(FSF_STORE_PATH, FLB_FSTORE_FS);
