mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
Print more details when writetest fails
This commit is contained in:
parent
e89408b426
commit
0a06a07fa4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user