mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Set application to unit test before a call to CApplication::getSwiftApplication()
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ba1122533f
commit
e83a02b854
@@ -109,7 +109,6 @@ namespace BlackCore
|
||||
QCoreApplication::setApplicationName(this->m_applicationName);
|
||||
QCoreApplication::setApplicationVersion(CVersion::version());
|
||||
this->setObjectName(this->m_applicationName);
|
||||
this->m_alreadyRunning = CApplication::getRunningApplications().containsApplication(CApplication::CApplication::getSwiftApplication());
|
||||
const QString executable = QFileInfo(QCoreApplication::applicationFilePath()).fileName();
|
||||
if (executable.startsWith("test"))
|
||||
{
|
||||
@@ -117,6 +116,7 @@ namespace BlackCore
|
||||
const QString tempPath(this->getTemporaryDirectory());
|
||||
BlackMisc::setMockCacheRootDirectory(tempPath);
|
||||
}
|
||||
this->m_alreadyRunning = CApplication::getRunningApplications().containsApplication(CApplication::getSwiftApplication());
|
||||
this->initParser();
|
||||
this->initLogging();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user