diff --git a/src/include/test/switch_test.h b/src/include/test/switch_test.h index 1cf1ff94ff..98a1bd068c 100644 --- a/src/include/test/switch_test.h +++ b/src/include/test/switch_test.h @@ -308,7 +308,7 @@ static switch_status_t fst_init_core_and_modload(const char *confdir, const char /** * Minimal FS core load */ -#define FST_MINCORE_BEGIN() \ +#define FST_MINCORE_BEGIN(confdir) \ FCT_BGN() \ { \ int fst_core = 0; \ @@ -317,7 +317,7 @@ static switch_status_t fst_init_core_and_modload(const char *confdir, const char switch_memory_pool_t *fst_pool = NULL; \ int fst_timer_started = 0; \ fst_getenv_default("FST_SUPPRESS_UNUSED_STATIC_WARNING", NULL, SWITCH_FALSE); \ - if (fst_init_core_and_modload(".", NULL, 1) == SWITCH_STATUS_SUCCESS) { /* minimal load */ \ + if (fst_init_core_and_modload(confdir, NULL, 1) == SWITCH_STATUS_SUCCESS) { /* minimal load */ \ fst_core = 1; \ } else { \ fprintf(stderr, "Failed to load FS core\n"); \ diff --git a/src/mod/endpoints/mod_sofia/test/test_sofia_funcs.c b/src/mod/endpoints/mod_sofia/test/test_sofia_funcs.c index f55649c5cf..e5b1baa932 100644 --- a/src/mod/endpoints/mod_sofia/test/test_sofia_funcs.c +++ b/src/mod/endpoints/mod_sofia/test/test_sofia_funcs.c @@ -33,7 +33,7 @@ #include #include "../mod_sofia.c" -FST_MINCORE_BEGIN() +FST_MINCORE_BEGIN("./conf") FST_SUITE_BEGIN(switch_hash) diff --git a/tests/unit/switch_console.c b/tests/unit/switch_console.c index 547b6f01ee..9a3e9cfdc8 100644 --- a/tests/unit/switch_console.c +++ b/tests/unit/switch_console.c @@ -33,7 +33,7 @@ #include #include -FST_MINCORE_BEGIN() +FST_MINCORE_BEGIN("./conf") FST_SUITE_BEGIN(SWITCH_STANDARD_STREAM) diff --git a/tests/unit/switch_event.c b/tests/unit/switch_event.c index 1f55b574b9..69410cec48 100644 --- a/tests/unit/switch_event.c +++ b/tests/unit/switch_event.c @@ -4,7 +4,7 @@ // #define BENCHMARK 1 -FST_MINCORE_BEGIN() +FST_MINCORE_BEGIN("./conf") FST_SUITE_BEGIN(switch_event) diff --git a/tests/unit/switch_hash.c b/tests/unit/switch_hash.c index 43d3e18692..e0de407917 100644 --- a/tests/unit/switch_hash.c +++ b/tests/unit/switch_hash.c @@ -4,7 +4,7 @@ // #define BENCHMARK 1 -FST_MINCORE_BEGIN() +FST_MINCORE_BEGIN("./conf") FST_SUITE_BEGIN(switch_hash) diff --git a/tests/unit/switch_utils.c b/tests/unit/switch_utils.c index 177d14c6ba..72c5817b71 100644 --- a/tests/unit/switch_utils.c +++ b/tests/unit/switch_utils.c @@ -33,7 +33,7 @@ #include #include -FST_MINCORE_BEGIN() +FST_MINCORE_BEGIN("./conf") FST_SUITE_BEGIN(switch_hash)