From: Carl Hetherington Date: Sat, 30 Dec 2017 01:43:59 +0000 (+0000) Subject: Fix call to Image::compare; it returns false if images are identical. X-Git-Tag: v2.11.31~3 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=ca545930f35fde9f60f76a6d66de475da5cb098c Fix call to Image::compare; it returns false if images are identical. This breaks alpha_blend_test for reasons that aren't yet clear. --- 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