Commit 976876ce authored by Volker Krause's avatar Volker Krause

Improve error handling and robustness in the server test setup

parent 10f36a39
......@@ -45,8 +45,13 @@ ServerController::~ServerController()
bool ServerController::start()
if (!m_process.waitForStarted(1000))
if (!m_process.waitForStarted(1000)) {
qWarning() << "Failed to launch:" << m_process.program() << m_process.arguments() << m_process.errorString();
return false;
// wait for the server to become available, otherwise the HTTP access below fails
ServerInfo s;
......@@ -58,6 +63,8 @@ bool ServerController::start()
if (!spy.wait())
return false;
if (reply->error() != QNetworkReply::NoError)
qWarning() << "Schema check failed:" << reply->errorString();
return reply->error() == QNetworkReply::NoError;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment