diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-17 20:37:14 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-17 20:44:34 +0100 |
commit | af7cfcf2402c3e810c52e6953ab9f83af6cb88df (patch) | |
tree | def6081192b91ae3fe188cfc7f39d9776e6697b3 | |
parent | 1c32550827d6dfed7465a984092c527f31d7039f (diff) |
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 <fabian.kosmale@qt.io>
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |