X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fsrt_subtitle_test.cc;h=11b6b28b99cbe6875cfcea5fc597c36f10c8281d;hb=8222e1fc7c8c66d31923b6155a68acf8b40dc33d;hp=cd4ce3a05079184c60b8ad95d9a6f1704fd621ff;hpb=ea63ad9560757e56505551db3bf2e1c31be5c76c;p=dcpomatic.git diff --git a/test/srt_subtitle_test.cc b/test/srt_subtitle_test.cc index cd4ce3a05..11b6b28b9 100644 --- a/test/srt_subtitle_test.cc +++ b/test/srt_subtitle_test.cc @@ -170,13 +170,14 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test5) film->set_name ("frobozz"); film->set_interop (true); film->set_sequence (false); - auto content = make_shared("test/data/subrip2.srt"); - content->only_text()->set_use (true); - content->only_text()->set_burn (false); - film->examine_and_add_content (content); - film->examine_and_add_content (content); - BOOST_REQUIRE (!wait_for_jobs()); - content->set_position (film, DCPTime()); + for (auto i = 0; i < 2; ++i) { + auto content = make_shared("test/data/subrip2.srt"); + content->only_text()->set_use (true); + content->only_text()->set_burn (false); + film->examine_and_add_content (content); + BOOST_REQUIRE (!wait_for_jobs()); + content->set_position (film, DCPTime()); + } make_and_verify_dcp (film, {dcp::VerificationNote::Code::INVALID_STANDARD}); check_dcp ("test/data/xml_subtitle_test2", film->dir (film->dcp_name ()));