Test update for auto-addition of markers.
authorCarl Hetherington <cth@carlh.net>
Sat, 21 Nov 2020 13:43:28 +0000 (14:43 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 21 Nov 2020 22:02:49 +0000 (23:02 +0100)
test/data
test/import_dcp_test.cc
test/video_mxf_content_test.cc

index d2e0ea48f4cb2d9571d450aabd78c3d2699ecb7d..f47d073d6610bdb3ae0ad9d842c4d66a6e9a16d2 160000 (submodule)
--- a/test/data
+++ b/test/data
@@ -1 +1 @@
-Subproject commit d2e0ea48f4cb2d9571d450aabd78c3d2699ecb7d
+Subproject commit f47d073d6610bdb3ae0ad9d842c4d66a6e9a16d2
index 671fc8cf7eb8136e37be917e75e0a10a7ae0b0c5..cb485e68a872a2845b8c821d0ae1071ccf0b66e3 100644 (file)
@@ -125,7 +125,10 @@ BOOST_AUTO_TEST_CASE (import_dcp_markers_test)
        BOOST_REQUIRE (!wait_for_jobs());
        film2->write_metadata ();
 
        BOOST_REQUIRE (!wait_for_jobs());
        film2->write_metadata ();
 
-       BOOST_CHECK_EQUAL (imported->markers().size(), 3U);
+       /* When import_dcp_markers_test was made a LFOC marker will automatically
+        * have been added.
+        */
+       BOOST_CHECK_EQUAL (imported->markers().size(), 4U);
 
        map<dcp::Marker, dcpomatic::ContentTime> markers = imported->markers();
        BOOST_REQUIRE(markers.find(dcp::FFOC) != markers.end());
 
        map<dcp::Marker, dcpomatic::ContentTime> markers = imported->markers();
        BOOST_REQUIRE(markers.find(dcp::FFOC) != markers.end());
@@ -142,7 +145,7 @@ BOOST_AUTO_TEST_CASE (import_dcp_markers_test)
        shared_ptr<DCPContent> reloaded = dynamic_pointer_cast<DCPContent>(film3->content().front());
        BOOST_REQUIRE (reloaded);
 
        shared_ptr<DCPContent> reloaded = dynamic_pointer_cast<DCPContent>(film3->content().front());
        BOOST_REQUIRE (reloaded);
 
-       BOOST_CHECK_EQUAL (reloaded->markers().size(), 3U);
+       BOOST_CHECK_EQUAL (reloaded->markers().size(), 4U);
 
        markers = reloaded->markers();
        BOOST_REQUIRE(markers.find(dcp::FFOC) != markers.end());
 
        markers = reloaded->markers();
        BOOST_REQUIRE(markers.find(dcp::FFOC) != markers.end());
index 91d03778cef13b05af216cc85d6c28d3f226a436..84c3f47339293ffa2d6772206e94d67e92db3f56 100644 (file)
@@ -35,7 +35,7 @@
 using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 
 using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 
-static boost::filesystem::path ref_mxf = "test/data/scaling_test_185_185/j2c_bff270b1-cf7c-483b-be22-265aee6097ba.mxf";
+static boost::filesystem::path ref_mxf = "test/data/scaling_test_185_185/j2c_c75af074-2809-453c-9192-6affb76b4ba3.mxf";
 
 static void note (dcp::NoteType, std::string)
 {
 
 static void note (dcp::NoteType, std::string)
 {