From e539ca748fe11c62b21bf93f6a644c44aaa98579 Mon Sep 17 00:00:00 2001 From: Sertonix Norson Date: Mon, 5 Oct 2026 14:46:26 +0200 Subject: [PATCH] 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. --- autotests/writetest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/writetest.cpp b/autotests/writetest.cpp index 1e35f2a..0a66546 100644 --- a/autotests/writetest.cpp +++ b/autotests/writetest.cpp @@ -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 // 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; - if (!fuzzyeq(writtenImage.convertToFormat(compareFormat), tmplImage.convertToFormat(compareFormat), 5)) { + if (!fuzzyeq(writtenImage.convertToFormat(compareFormat), tmplImage.convertToFormat(compareFormat), 5, true)) { ++failed; QTextStream(stdout) << "FAIL : re-reading the data resulted in a different image " << formatName << "\n"; continue;