mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +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) {
|
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;
|
qDebug() << "Server process exited" << (status ? "abnormally" : "normally") << "with exit code" << code;
|
||||||
});
|
});
|
||||||
m_process.start("sharedstatetestserver", QStringList());
|
m_process.start(QCoreApplication::applicationDirPath() + "/sharedstatetestserver", QStringList());
|
||||||
m_process.waitForStarted();
|
if (!m_process.waitForStarted())
|
||||||
|
{
|
||||||
|
qDebug() << "Server failed to start";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//! dtor
|
//! dtor
|
||||||
~Server()
|
~Server()
|
||||||
|
|||||||
Reference in New Issue
Block a user