summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/configmanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index 8f0ec3002..e9c130fc1 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -134,10 +134,15 @@ void ConfigManager::initConfiguration()
std::string configPath;
+#ifndef UNITTESTS
if (settings.options.test.empty())
configPath = settings.configDir + "/config.xml";
else
configPath = settings.configDir + "/test.xml";
+#else // UNITTESTS
+
+ configPath = settings.configDir + "/unittestconfig.xml";
+#endif // UNITTESTS
FILE *configFile = fopen(configPath.c_str(), "r");
if (!configFile)