X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fmarkers_test.cc;h=a3c46af44109e237de0aad77f390b418905f1ec3;hb=HEAD;hp=c0f73882d71c58a3113af9280c4333a98ea73f7d;hpb=d2471a4321499df61081944c54cea5985619ae9a;p=dcpomatic.git diff --git a/test/markers_test.cc b/test/markers_test.cc index c0f73882d..a3c46af44 100644 --- a/test/markers_test.cc +++ b/test/markers_test.cc @@ -37,7 +37,6 @@ using std::string; using boost::optional; -using std::shared_ptr; /** Check that FFOC and LFOC are automatically added if not specified */ @@ -140,3 +139,16 @@ BOOST_AUTO_TEST_CASE(markers_correct_with_reels) BOOST_CHECK(*lfoc == dcp::Time(0, 0, 9, 23, 24)); } + +BOOST_AUTO_TEST_CASE(no_markers_with_interop) +{ + string const name = "no_markers_with_interop"; + auto film = new_test_film2(name, content_factory("test/data/flat_red.png")); + + film->set_interop(true); + make_and_verify_dcp(film, { dcp::VerificationNote::Code::INVALID_STANDARD }); + + auto cpl = find_file(film->dir(film->dcp_name()), "cpl_"); + BOOST_CHECK(dcp::file_to_string(cpl).find("MainMarkers") == std::string::npos); +} +