diff --git a/tests/blackmisc/testsharedstate/testsharedstate.cpp b/tests/blackmisc/testsharedstate/testsharedstate.cpp index c440f255d..96826515e 100644 --- a/tests/blackmisc/testsharedstate/testsharedstate.cpp +++ b/tests/blackmisc/testsharedstate/testsharedstate.cpp @@ -127,8 +127,11 @@ namespace BlackMiscTest QObject::connect(&m_process, qOverload(&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()