JXR: added CMYK image to read test

Improved read test to skip unsupported image format: the CMYK image test only works if you compile with Qt 6.8 or higher.
This commit is contained in:
Mirco Miranda
2024-06-07 14:09:34 +00:00
committed by Albert Astals Cid
parent 4f61e3912c
commit cb5ca7fc48
6 changed files with 34 additions and 7 deletions

View File

@ -165,7 +165,13 @@ int main(int argc, char **argv)
continue;
}
QFileInfo expFileInfo = timg.compareImage();
bool skipTest = false;
QFileInfo expFileInfo = timg.compareImage(skipTest);
if (skipTest) {
QTextStream(stdout) << "SKIP : " << fi.fileName() << ": image format not supported by current Qt version!\n";
++skipped;
continue;
}
if (!formatStrings.contains(expFileInfo.suffix(), Qt::CaseInsensitive)) {
// Work Around for CCBUG: 468288
QTextStream(stdout) << "SKIP : " << fi.fileName() << ": comparison image " << expFileInfo.fileName() << " cannot be loaded due to the lack of "