Give a more useful error when check_dcp() fails.
authorCarl Hetherington <cth@carlh.net>
Sat, 26 Aug 2023 18:16:47 +0000 (20:16 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 29 Aug 2023 16:29:59 +0000 (18:29 +0200)
test/test.cc

index d9ab2d60bcbedd48ce5868845dd3326266f8c641..630026120736327eb22cea872c9a5772f4315f8b 100644 (file)
@@ -567,7 +567,7 @@ check_dcp(boost::filesystem::path ref, boost::filesystem::path check, bool sound
        options.max_subtitle_vertical_position_error = 0.001;
        options.sound_assets_can_differ = sound_can_differ;
 
-       BOOST_CHECK (ref_dcp.equals (check_dcp, options, boost::bind (note, _1, _2)));
+       BOOST_CHECK_MESSAGE(ref_dcp.equals(check_dcp, options, boost::bind (note, _1, _2)), check << " does not match " << ref);
 }
 
 void