test: Fixed CommandlineTestSuite changed TestSettings.xml

This commit is contained in:
Eberhard Graether
2017-09-13 15:53:21 +02:00
parent 64a97d37f1
commit 3f06724cad
4 changed files with 9 additions and 7 deletions
+1
View File
@@ -12,6 +12,7 @@
/bin/test/data/log/
/bin/test/data/temp.xml
/bin/test/data/TestSettings.xml
/bin/test/data/CommandlineTestSuite/settings.xml
/java_indexer/target/
@@ -248,7 +248,7 @@ ReturnStatus CommandConfig::parse(std::vector<std::string>& args)
}
}
settings->save(UserPaths::getAppSettingsPath());
settings->save();
return ReturnStatus::CMD_QUIT;
}
+7 -6
View File
@@ -9,15 +9,16 @@
class CommandlineTestSuite: public CxxTest::TestSuite
{
public:
void setUp()
{
m_appSettingsPath = ApplicationSettings::getInstance()->getFilePath();
ApplicationSettings::getInstance()->load(FilePath("data/CommandlineTestSuite/settings.xml"));
}
void tearDown()
{
}
void setUp()
{
ApplicationSettings::getInstance()->load(m_appSettingsPath);
}
void test_commandline_version()
@@ -139,5 +140,5 @@ public:
}
private:
FilePath m_appSettingsPath;
};