{
string const name = "hint_subtitle_mxf_too_big";
- dcp::File fake_font("build/test/hint_subtitle_mxf_too_big.ttf", "w");
- for (int i = 0; i < 4096; ++i) {
- std::vector<uint8_t> rubbish(65536);
- fake_font.write(rubbish.data(), 1, rubbish.size());
+ auto film = new_test_film2 (name);
+
+ for (int i = 0; i < 4; ++i) {
+ dcp::File fake_font("build/test/hint_subtitle_mxf_too_big.ttf", "w");
+ for (int i = 0; i < 512; ++i) {
+ std::vector<uint8_t> rubbish(65536);
+ fake_font.write(rubbish.data(), 1, rubbish.size());
+ }
+ fake_font.close();
+
+ auto content = content_factory(String::compose("test/data/%1%2.xml", name, i))[0];
+ content->text[0]->set_type(TextType::OPEN_SUBTITLE);
+ content->text[0]->set_language(dcp::LanguageTag("en-US"));
+ film->examine_and_add_content(content);
+ BOOST_REQUIRE (!wait_for_jobs());
+ auto const font = content->text[0]->get_font(String::compose("font_%1", i));
+ font->set_file("build/test/hint_subtitle_mxf_too_big.ttf");
}
- fake_font.close();
- auto film = new_test_film2 (name);
- auto content = content_factory("test/data/" + name + ".srt")[0];
- content->text.front()->set_type (TextType::OPEN_SUBTITLE);
- content->text.front()->set_language (dcp::LanguageTag("en-US"));
- film->examine_and_add_content (content);
- BOOST_REQUIRE (!wait_for_jobs());
- content->text.front()->get_font("")->set_file("build/test/hint_subtitle_mxf_too_big.ttf");
auto hints = get_hints (film);
BOOST_REQUIRE_EQUAL (hints.size(), 1U);
hints[0],
"The certificate chain that DCP-o-matic uses for signing DCPs and KDMs has a validity period "
"that is too long. This will cause problems playing back DCPs on some systems. "
- "You are advised to re-create the signing certificate chain by clicking the "
+ "It is advisable to re-create the signing certificate chain by clicking the "
"\"Re-make certificates and key...\" button in the Keys page of Preferences."
);
}