Print more details when writetest fails

This commit is contained in:
Daniel Novomeský 2025-02-04 11:07:07 +01:00
parent e89408b426
commit 0a06a07fa4

View File

@ -403,7 +403,8 @@ int formatTest(const QString &suffix, bool createTemplates)
// checking the format: must be the same
if (writtenImage.format() != tmplImage.format()) {
++failed;
QTextStream(stdout) << "FAIL : format mismatch " << formatName << "\n";
auto tmplformatName = QString(QMetaEnum::fromType<QImage::Format>().valueToKey(tmplImage.format()));
QTextStream(stdout) << "FAIL : format mismatch " << formatName << " != " << tmplformatName << "\n";
continue;
}