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>
This commit is contained in:
Ulf Hermann 2020-11-17 20:37:14 +01:00
parent 1c32550827
commit af7cfcf240
1 changed files with 8 additions and 0 deletions

View File

@ -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();