Fix call to Image::compare; it returns false if images are identical.
authorCarl Hetherington <cth@carlh.net>
Sat, 30 Dec 2017 01:43:59 +0000 (01:43 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 30 Dec 2017 01:43:59 +0000 (01:43 +0000)
This breaks alpha_blend_test for reasons that aren't yet clear.

test/test.cc

index 41f195140157d7147688e0324752155d97c7ff49..0c2f324e05de99126375bba104bd508cb23091d9 100644 (file)
@@ -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