mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Use absolute path for sharedstatetestserver
This commit is contained in:
@@ -127,8 +127,11 @@ namespace BlackMiscTest
|
||||
QObject::connect(&m_process, qOverload<int, QProcess::ExitStatus>(&QProcess::finished), [](int code, QProcess::ExitStatus status) {
|
||||
qDebug() << "Server process exited" << (status ? "abnormally" : "normally") << "with exit code" << code;
|
||||
});
|
||||
m_process.start("sharedstatetestserver", QStringList());
|
||||
m_process.waitForStarted();
|
||||
m_process.start(QCoreApplication::applicationDirPath() + "/sharedstatetestserver", QStringList());
|
||||
if (!m_process.waitForStarted())
|
||||
{
|
||||
qDebug() << "Server failed to start";
|
||||
}
|
||||
}
|
||||
//! dtor
|
||||
~Server()
|
||||
|
||||
Reference in New Issue
Block a user