X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fempty_caption_test.cc;h=3138c4af2dd20d33cc214e66ad5b0d2b32fc4759;hb=HEAD;hp=f0449a3ceebc96cff0553c74c61e5b0c1077b932;hpb=b1e22dff981fb86ae04b12bb5a064e61030793a8;p=dcpomatic.git diff --git a/test/empty_caption_test.cc b/test/empty_caption_test.cc index f0449a3ce..3138c4af2 100644 --- a/test/empty_caption_test.cc +++ b/test/empty_caption_test.cc @@ -29,14 +29,18 @@ BOOST_AUTO_TEST_CASE (check_for_no_empty_text_nodes_in_failure_case) { + Cleanup cl; + auto content = content_factory("test/data/empty.srt"); - auto film = new_test_film2 ("check_for_no_empty_text_nodes_in_failure_case", content); + auto film = new_test_film2("check_for_no_empty_text_nodes_in_failure_case", content, &cl); auto text = content[0]->text.front(); text->set_type (TextType::CLOSED_CAPTION); - text->set_dcp_track({"English", dcp::LanguageTag("en-GB")}); + text->set_dcp_track({"English", dcp::LanguageTag("en")}); make_and_verify_dcp (film, { dcp::VerificationNote::Code::MISSING_CPL_METADATA }); + + cl.run(); }