Nicer message in test check.
authorCarl Hetherington <cth@carlh.net>
Thu, 20 Nov 2014 13:52:57 +0000 (13:52 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 20 Nov 2014 13:52:57 +0000 (13:52 +0000)
test/ffmpeg_decoder_sequential_test.cc

index 9a14c5adbdb1695a5ef890b5c41bfb637361e315..1bef9cb0d980de63ff65a372ff348bc94def0685 100644 (file)
@@ -63,7 +63,7 @@ test (boost::filesystem::path file, float fps, int first)
                list<ContentVideo> v;
                v = decoder.get_video (i, true);
                if (i < first) {
                list<ContentVideo> v;
                v = decoder.get_video (i, true);
                if (i < first) {
-                       BOOST_CHECK (v.empty ());
+                       BOOST_CHECK_MESSAGE (v.empty (), "Request for " << i << " in " << file << " returned " << v.size());
                } else {
                        BOOST_CHECK (v.size() == 1);
                        BOOST_CHECK_EQUAL (v.front().frame, i);
                } else {
                        BOOST_CHECK (v.size() == 1);
                        BOOST_CHECK_EQUAL (v.front().frame, i);