Shamelessly stolen from the 'fastertest' patch.

This makes the unit tests run about 70% faster and solves a long-standing annoyance that
running in standalone mode could contaminate your databases.
This commit is contained in:
JoelKatz
2013-02-13 05:37:15 -08:00
parent fa2283f234
commit d767da37d8

View File

@@ -25,7 +25,7 @@ Application* theApp = NULL;
DatabaseCon::DatabaseCon(const std::string& strName, const char *initStrings[], int initCount)
{
boost::filesystem::path pPath = theConfig.DATA_DIR / strName;
boost::filesystem::path pPath = theConfig.RUN_STANDALONE ? "" : theConfig.DATA_DIR / strName;
mDatabase = new SqliteDatabase(pPath.string().c_str());
mDatabase->connect();