[Spice-devel] [vdagent-win PATCH] tests: Workaround a possible ImageMagick bug
Frediano Ziglio
fziglio at redhat.com
Wed Oct 11 10:30:38 UTC 2017
Some release of ImageMagick contains a bug in compare
utility which uses uninitialized data.
This currently happens on Fedora 25 and 26.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
test-png | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test-png b/test-png
index ee9d86e..e942831 100755
--- a/test-png
+++ b/test-png
@@ -18,7 +18,9 @@ verbose() {
}
compare_images() {
- DIFF=$(compare -metric AE $1 $2 - 2>&1 > /dev/null || true)
+ # MALLOC_PERTURB_ is to workaround a bug in some compare versions
+ # which use some uninitialized data
+ DIFF=$(MALLOC_PERTURB_=255 compare -metric AE $1 $2 - 2>&1 > /dev/null || true)
if [ "$DIFF" != "0" ]; then
error "Images $1 and $2 are too different, diff $DIFF"
fi
--
2.13.6
More information about the Spice-devel
mailing list