From ca545930f35fde9f60f76a6d66de475da5cb098c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 30 Dec 2017 01:43:59 +0000 Subject: [PATCH] Fix call to Image::compare; it returns false if images are identical. This breaks alpha_blend_test for reasons that aren't yet clear. --- test/test.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test.cc b/test/test.cc index 41f195140..0c2f324e0 100644 --- a/test/test.cc +++ b/test/test.cc @@ -236,7 +236,11 @@ check_image (boost::filesystem::path ref, boost::filesystem::path check) ref_image.read (ref.string ()); Magick::Image check_image; check_image.read (check.string ()); - BOOST_CHECK_MESSAGE (ref_image.compare (check_image), ref << " differs from " << check); + BOOST_CHECK_MESSAGE ( + !ref_image.compare(check_image), + ref << " differs from " << check << " " + << ref_image.meanErrorPerPixel() << " " << ref_image.normalizedMaxError() << " " << ref_image.normalizedMeanError() + ); } void -- 2.30.2