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:
parent
1c32550827
commit
af7cfcf240
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue