integration tests: Improve message when ZNC is missing

Previously, "more or less unrelated" things would fail. After this
change, also a message is printing that gives a hint on what went wrong.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2017-02-28 12:42:45 +01:00
parent c2c85b2335
commit 1543635abf

View File

@@ -141,6 +141,8 @@ class Process : public IO<QProcess> {
m_proc.setProcessEnvironment(env);
setup(&m_proc);
m_proc.start(cmd, args);
EXPECT_TRUE(m_proc.waitForStarted())
<< "Failed to start ZNC, did you install it?";
}
~Process() override {
if (m_kill) m_proc.terminate();