More verification of DCPs during tests.
[dcpomatic.git] / test / closed_caption_test.cc
index b5b13e040eda7bd88e795298fc97a1e4fdd46ce0..2b80c812eba948008ad4cf86310e55c84cf38f55 100644 (file)
@@ -42,8 +42,14 @@ BOOST_AUTO_TEST_CASE (closed_caption_test1)
 
        content->only_text()->set_type (TextType::CLOSED_CAPTION);
 
-       film->make_dcp ();
-       BOOST_REQUIRE (!wait_for_jobs ());
+       make_and_verify_dcp (
+               film,
+               {
+                       dcp::VerificationNote::Code::MISSING_SUBTITLE_LANGUAGE,
+                       dcp::VerificationNote::Code::INVALID_SUBTITLE_FIRST_TEXT_TIME,
+                       dcp::VerificationNote::Code::INVALID_CLOSED_CAPTION_LINE_LENGTH,
+                       dcp::VerificationNote::Code::MISSING_CPL_METADATA
+               });
 
        /* Just check to see that there's a CCAP in the CPL: this
           check could be better!