X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fdcp_subtitle_test.cc;h=9b7b77279968f6afffa977c448a685ebb7989ed4;hb=4ae0193c125cc70176eb1660919d507fbf5378e4;hp=a7ec34514876ba3075afdbda9cca6a45a6d0486f;hpb=4e460664ee6f1cc34ac566fb9f0b3655fd329de6;p=dcpomatic.git diff --git a/test/dcp_subtitle_test.cc b/test/dcp_subtitle_test.cc index a7ec34514..9b7b77279 100644 --- a/test/dcp_subtitle_test.cc +++ b/test/dcp_subtitle_test.cc @@ -96,7 +96,11 @@ BOOST_AUTO_TEST_CASE (dcp_subtitle_test) dcp::VerificationNote::Code::MISSING_CPL_METADATA }); - check_dcp ("test/data/dcp_subtitle_test", film->dir(film->dcp_name())); + /* This test is concerned with the subtitles, so we'll ignore any + * differences in sound between the DCP and the reference to avoid test + * failures for unrelated reasons. + */ + check_dcp("test/data/dcp_subtitle_test", film->dir(film->dcp_name()), true); } @@ -111,7 +115,7 @@ BOOST_AUTO_TEST_CASE (dcp_subtitle_within_dcp_test) film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs ()); - shared_ptr decoder (new DCPDecoder (film, content, false, false, shared_ptr())); + auto decoder = make_shared(film, content, false, false, shared_ptr()); decoder->only_text()->PlainStart.connect (bind (store, _1)); stored = optional ();