summaryrefslogtreecommitdiff
path: root/test/burnt_subtitle_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-02-21 20:28:59 +0100
committerCarl Hetherington <cth@carlh.net>2021-02-23 20:09:39 +0100
commit41262015eb2bb1fc3da8585883420975de381a65 (patch)
treef16a0bea110f57a820c7c45321775b3b7a9a4122 /test/burnt_subtitle_test.cc
parentd756e14c0bb2c2264248b26d59c363b6bc33a7fc (diff)
Verify a whole bunch of DCPs made by unit tests.
Diffstat (limited to 'test/burnt_subtitle_test.cc')
-rw-r--r--test/burnt_subtitle_test.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/burnt_subtitle_test.cc b/test/burnt_subtitle_test.cc
index 25ad3f66b..1d689e332 100644
--- a/test/burnt_subtitle_test.cc
+++ b/test/burnt_subtitle_test.cc
@@ -83,8 +83,7 @@ BOOST_AUTO_TEST_CASE (burnt_subtitle_test_dcp)
content->subtitle->set_use (true);
film->examine_and_add_content (content);
BOOST_REQUIRE (!wait_for_jobs());
- film->make_dcp ();
- BOOST_REQUIRE (!wait_for_jobs());
+ make_and_verify_dcp (film);
check_dcp ("test/data/burnt_subtitle_test_dcp", film->dir (film->dcp_name ()));
}
@@ -98,8 +97,7 @@ BOOST_AUTO_TEST_CASE (burnt_subtitle_test_onto_dcp)
film->set_name ("frobozz");
film->examine_and_add_content (content_factory(film, "test/data/flat_black.png").front());
BOOST_REQUIRE (!wait_for_jobs());
- film->make_dcp ();
- BOOST_REQUIRE (!wait_for_jobs());
+ make_and_verify_dcp (film);
Config::instance()->set_log_types (Config::instance()->log_types() | LogEntry::TYPE_DEBUG_ENCODE);
auto film2 = new_test_film ("burnt_subtitle_test_onto_dcp2");
@@ -115,8 +113,7 @@ BOOST_AUTO_TEST_CASE (burnt_subtitle_test_onto_dcp)
sub->subtitle->set_outline (true);
film2->examine_and_add_content (sub);
BOOST_REQUIRE (!wait_for_jobs());
- film2->make_dcp ();
- BOOST_REQUIRE (!wait_for_jobs());
+ make_and_verify_dcp (film2);
BOOST_CHECK (background_dcp->position() == DCPTime());
BOOST_CHECK (sub->position() == DCPTime());