mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-10-07 02:42:03 -04:00
Enable perceptiveFuzzer for write tests
Fixes kimageformats-write-exr test on Alpine Linux armhf, armv7, loongarch64, ppc64le, riscv64 and s390x. Working alternatives are increasing fuzziness to 10 or using 64bpp formats as compareFormat.
This commit is contained in:
committed by
Mirco Miranda
parent
cb74a20421
commit
e539ca748f
@@ -428,7 +428,7 @@ int formatTest(const QString &suffix, bool createTemplates)
|
|||||||
// This comparison is only to understand if the plugin has written a completely wrong image. I therefore have no
|
// This comparison is only to understand if the plugin has written a completely wrong image. I therefore have no
|
||||||
// qualms about converting them to a more convenient format or to tolerate slightly different pixels.
|
// qualms about converting them to a more convenient format or to tolerate slightly different pixels.
|
||||||
auto compareFormat = writtenImage.hasAlphaChannel() ? QImage::Format_ARGB32 : QImage::Format_RGB32;
|
auto compareFormat = writtenImage.hasAlphaChannel() ? QImage::Format_ARGB32 : QImage::Format_RGB32;
|
||||||
if (!fuzzyeq(writtenImage.convertToFormat(compareFormat), tmplImage.convertToFormat(compareFormat), 5)) {
|
if (!fuzzyeq(writtenImage.convertToFormat(compareFormat), tmplImage.convertToFormat(compareFormat), 5, true)) {
|
||||||
++failed;
|
++failed;
|
||||||
QTextStream(stdout) << "FAIL : re-reading the data resulted in a different image " << formatName << "\n";
|
QTextStream(stdout) << "FAIL : re-reading the data resulted in a different image " << formatName << "\n";
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user