diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-17 22:03:45 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-17 22:03:45 +0000 |
| commit | 46d89e9f754c50712e8983ae5c86bbb0a6cf4362 (patch) | |
| tree | 3ea5ac08be47bc16a21b0df68eb256604c6af6d6 /test/test.cc | |
| parent | 4f083917cfe9fc15249bfd4b36f723b604173d16 (diff) | |
More test fixes.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index f829a86f6..b0bd0bda7 100644 --- a/test/test.cc +++ b/test/test.cc @@ -231,7 +231,7 @@ check_mxf_audio_file (boost::filesystem::path ref, boost::filesystem::path check } void -check_image (boost::filesystem::path ref, boost::filesystem::path check) +check_image (boost::filesystem::path ref, boost::filesystem::path check, double dist_tolerance) { #ifdef DCPOMATIC_IMAGE_MAGICK using namespace MagickCore; @@ -248,7 +248,7 @@ check_image (boost::filesystem::path ref, boost::filesystem::path check) */ #ifdef DCPOMATIC_ADVANCED_MAGICK_COMPARE double const dist = ref_image.compare(check_image, Magick::RootMeanSquaredErrorMetric); - BOOST_CHECK_MESSAGE (dist < 0.01, ref << " differs from " << check << " " << dist); + BOOST_CHECK_MESSAGE (dist < dist_tolerance, ref << " differs from " << check << " " << dist); #else BOOST_CHECK_MESSAGE (!ref_image.compare(check_image), ref << " differs from " << check); #endif |
