From e1dc5662652d3914d9a923756c8bc60a9104faf0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 2 Jan 2019 16:28:51 +0200 Subject: [PATCH] Improve test verbosity. Read from stderr to provide more information. ref #917. --HG-- branch : release --- src/libs/vtest/abstracttest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/vtest/abstracttest.cpp b/src/libs/vtest/abstracttest.cpp index 63f89eb94..675c39230 100644 --- a/src/libs/vtest/abstracttest.cpp +++ b/src/libs/vtest/abstracttest.cpp @@ -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; }