Commit 1b9c79b9 authored by Benjamin REIS's avatar Benjamin REIS
Browse files

get correct database path in mainDb tester

parent 0fcb6fe1
...@@ -35,18 +35,13 @@ using namespace LinphonePrivate; ...@@ -35,18 +35,13 @@ using namespace LinphonePrivate;
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
static const string getDatabasePath () {
static const string path = string(bc_tester_get_resource_dir_prefix()) + "db/linphone.db";
return path;
}
// -----------------------------------------------------------------------------
class MainDbProvider { class MainDbProvider {
public: public:
MainDbProvider () { MainDbProvider () {
mCoreManager = linphone_core_manager_create("marie_rc"); mCoreManager = linphone_core_manager_create("marie_rc");
linphone_config_set_string(linphone_core_get_config(mCoreManager->lc), "storage", "uri", getDatabasePath().c_str()); char *dbPath = bc_tester_res("db/linphone.db");
linphone_config_set_string(linphone_core_get_config(mCoreManager->lc), "storage", "uri", dbPath);
bctbx_free(dbPath);
linphone_core_manager_start(mCoreManager, false); linphone_core_manager_start(mCoreManager, false);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment