Use absolute path for sharedstatetestserver

This commit is contained in:
Lars Toenning
2023-10-31 22:49:37 +01:00
parent 8e8b079e21
commit 7987a14af1

View File

@@ -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()