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);
}
film->examine_and_add_content (content);
BOOST_REQUIRE (!wait_for_jobs ());
- shared_ptr<DCPDecoder> decoder (new DCPDecoder (film, content, false, false, shared_ptr<DCPDecoder>()));
+ auto decoder = make_shared<DCPDecoder>(film, content, false, false, shared_ptr<DCPDecoder>());
decoder->only_text()->PlainStart.connect (bind (store, _1));
stored = optional<ContentStringText> ();
stored = optional<ContentStringText> ();
while (!decoder->pass()) {
if (stored && stored->from() == ContentTime(0)) {
- BOOST_CHECK_EQUAL (stored->subs.front().text(), "<b>Hello world!</b>");
+ /* Text passed around by the player should be unescaped */
+ BOOST_CHECK_EQUAL(stored->subs.front().text(), "<b>Hello world!</b>");
}
}
}
/* Remake with burn */
content->only_text()->set_burn(true);
+ boost::filesystem::remove_all(film->dir(film->dcp_name()));
make_and_verify_dcp (
film,
{