From af7cfcf2402c3e810c52e6953ab9f83af6cb88df Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 17 Nov 2020 20:37:14 +0100 Subject: tst_qmllint: Be more verbose when qmllint crashes Output the command line, exit status, exit code, stderr and stdout. Change-Id: I81a813bc44b7caf4c25d9097e8fbcbc3295ac6ec Reviewed-by: Fabian Kosmale --- tests/auto/qml/qmllint/tst_qmllint.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index 56dcd368c6..7ad5ee136e 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -319,6 +319,14 @@ QString TestQmllint::runQmllint(const QString &fileToLint, if (isSilent) QVERIFY(errors.isEmpty()); + + if (QTest::currentTestFailed()) { + qDebug() << "Command:" << process.program() << args.join(u' '); + qDebug() << "Exit status:" << process.exitStatus(); + qDebug() << "Exit code:" << process.exitCode(); + qDebug() << "stderr:" << errors; + qDebug() << "stdout:" << process.readAllStandardOutput(); + } }; verify(true); args.removeLast(); -- cgit v1.2.3