From d5d8104d3ac1263f86a82669b049571c30e556d2 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. (grafted from 33a876f6910d456af8f6e8df34540a23cb45361c) --HG-- branch : develop --- 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; }