diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-28 00:52:42 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-28 00:52:42 +0000 |
| commit | 44b97d718fa4b487641a983fa0b6ae485470eef8 (patch) | |
| tree | 131e1149439f30a496c6184e0ac65a076092e8cb /test/test.cc | |
| parent | 3c88c626399fff9b95c89065d3b8ee9de1148d52 (diff) | |
Tweak error threshold for an image comparison involving subtitles.
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 9e168b1e2..68c1cfccd 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 threshold) { #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 < threshold, ref << " differs from " << check << " " << dist); #else BOOST_CHECK_MESSAGE (!ref_image.compare(check_image), ref << " differs from " << check); #endif |
