Improve test verbosity. Read from stderr to provide more information. ref #917.

(grafted from 33a876f6910d456af8f6e8df34540a23cb45361c)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-01-02 16:28:51 +02:00
parent 9f91137ae1
commit d5d8104d3a

View file

@ -128,14 +128,16 @@ int AbstractTest::Run(int exit, const QString &program, const QStringList &argum
if (not process->waitForStarted(msecs))
{
error = QStringLiteral("The start operation timed out or an error occurred.\n%1").arg(parameters);
error = QStringLiteral("The start operation timed out or an error occurred.\n%1\n%2")
.arg(parameters, QString(process->readAllStandardError()));
process->kill();
return TST_EX_START_TIME_OUT;
}
if (not process->waitForFinished(msecs))
{
error = QStringLiteral("The finish operation timed out or an error occurred.\n%1").arg(parameters);
error = QStringLiteral("The finish operation timed out or an error occurred.\n%1\n%2")
.arg(parameters, QString(process->readAllStandardError()));
process->kill();
return TST_EX_FINISH_TIME_OUT;
}