diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-03 10:54:45 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-03 10:54:45 +0000 |
| commit | cf25274c4a6cffce53d4f57c5e900063d95f92de (patch) | |
| tree | ad712772c4045ed27fb71dee7e8b7e41e53d5b2b | |
| parent | 5d2864806054d068e245e54b5072197eb6e911e1 (diff) | |
Fix test.
| -rw-r--r-- | test/vf_test.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/vf_test.cc b/test/vf_test.cc index 904f1d559..124a9061a 100644 --- a/test/vf_test.cc +++ b/test/vf_test.cc @@ -22,6 +22,7 @@ #include "lib/ffmpeg_content.h" #include "test.h" #include <boost/test/unit_test.hpp> +#include <boost/foreach.hpp> using std::list; using std::string; @@ -46,7 +47,8 @@ BOOST_AUTO_TEST_CASE (vf_test1) film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT); BOOST_CHECK (dcp->can_reference_video(why_not)); BOOST_CHECK (dcp->can_reference_audio(why_not)); - BOOST_CHECK (dcp->can_reference_subtitle(why_not)); + /* (but reels_test2 has no subtitles to reference) */ + BOOST_CHECK (!dcp->can_reference_subtitle(why_not)); shared_ptr<FFmpegContent> other (new FFmpegContent (film, "test/data/test.mp4")); film->examine_and_add_content (other); @@ -62,5 +64,6 @@ BOOST_AUTO_TEST_CASE (vf_test1) other->set_position (dcp->end ()); BOOST_CHECK (dcp->can_reference_video(why_not)); BOOST_CHECK (dcp->can_reference_audio(why_not)); - BOOST_CHECK (dcp->can_reference_subtitle(why_not)); + /* (reels_test2 has no subtitles to reference) */ + BOOST_CHECK (!dcp->can_reference_subtitle(why_not)); } |
