X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fburnt_subtitle_test.cc;h=2a1360c78269b5962c08509eb15be62f036db284;hb=8611fc8597605aa51373adb4fc8f0c697b8c7360;hp=40dac675638c4d18a4771e5dc31c87f1ef2e705a;hpb=df17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc;p=dcpomatic.git diff --git a/test/burnt_subtitle_test.cc b/test/burnt_subtitle_test.cc index 40dac6756..2a1360c78 100644 --- a/test/burnt_subtitle_test.cc +++ b/test/burnt_subtitle_test.cc @@ -20,7 +20,7 @@ /** @file test/burnt_subtitle_test.cc * @brief Test the burning of subtitles into the DCP. - * @ingroup specific + * @ingroup feature */ #include "lib/plain_text_content.h" @@ -51,6 +51,7 @@ using std::cout; using std::map; using boost::shared_ptr; using boost::dynamic_pointer_cast; +using namespace dcpomatic; /** Build a small DCP with no picture and a single subtitle overlaid onto it from a SubRip file */ BOOST_AUTO_TEST_CASE (burnt_subtitle_test_subrip) @@ -63,9 +64,9 @@ BOOST_AUTO_TEST_CASE (burnt_subtitle_test_subrip) content->subtitle->set_use (true); content->subtitle->set_burn (true); film->examine_and_add_content (content); - wait_for_jobs (); + BOOST_REQUIRE (!wait_for_jobs()); film->make_dcp (); - wait_for_jobs (); + BOOST_REQUIRE (!wait_for_jobs()); check_dcp ("test/data/burnt_subtitle_test_subrip", film->dir (film->dcp_name ())); } @@ -80,9 +81,9 @@ BOOST_AUTO_TEST_CASE (burnt_subtitle_test_dcp) shared_ptr content (new DCPTextContent (film, "test/data/dcp_sub.xml")); content->subtitle->set_use (true); film->examine_and_add_content (content); - wait_for_jobs (); + BOOST_REQUIRE (!wait_for_jobs()); film->make_dcp (); - wait_for_jobs (); + BOOST_REQUIRE (!wait_for_jobs()); check_dcp ("test/data/burnt_subtitle_test_dcp", film->dir (film->dcp_name ())); }