Fix tests again on Windows. v1.8.63
authorCarl Hetherington <cth@carlh.net>
Mon, 27 Feb 2023 09:46:36 +0000 (10:46 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 27 Feb 2023 09:46:36 +0000 (10:46 +0100)
test/data/2007.mxf
test/data/2010.mxf
test/smpte_subtitle_test.cc

index a6e68bf7217dc9e963b7b40e2e951416ef2cd5a0..be085a9c4c3354f72f391267e110dbf432baf138 100644 (file)
Binary files a/test/data/2007.mxf and b/test/data/2007.mxf differ
index 82c64c19fd3049b6a50384c2382011a58fdffaa5..60f201084135f93e129081a864b9b4c7bc82b8cb 100644 (file)
Binary files a/test/data/2010.mxf and b/test/data/2010.mxf differ
index e5cdfa23c1f37a8db2836c63325de9dd06d7dac8..b271b02c1c0dd2a23639aacf277c5b5f1ef80574 100644 (file)
@@ -719,27 +719,20 @@ BOOST_AUTO_TEST_CASE(smpte_subtitle_standard_written_correctly)
        boost::filesystem::remove_all(out);
        boost::filesystem::create_directories(out);
 
-       dcp::MXFMetadata metadata;
-       /* Pin this so tests don't fail on newer version */
-       metadata.product_version = "1.8.59";
-
        dcp::SMPTESubtitleAsset test_2014;
-       test_2014.set_metadata(metadata);
        test_2014.set_issue_date(dcp::LocalTime("2020-01-01T14:00:00"));
        test_2014.write(out / "2014.mxf");
-       check_file(ref / "2014.mxf", out / "2014.mxf");
+       BOOST_CHECK(dcp::SMPTESubtitleAsset(ref / "2014.mxf").raw_xml() == dcp::SMPTESubtitleAsset(out / "2014.mxf").raw_xml());
 
        dcp::SMPTESubtitleAsset test_2010(dcp::SubtitleStandard::SMPTE_2010);
-       test_2010.set_metadata(metadata);
        test_2010.set_issue_date(dcp::LocalTime("2020-01-01T14:00:00"));
        test_2010.write(out / "2010.mxf");
-       check_file(ref / "2010.mxf", out / "2010.mxf");
+       BOOST_CHECK(dcp::SMPTESubtitleAsset(ref / "2010.mxf").raw_xml() == dcp::SMPTESubtitleAsset(out / "2010.mxf").raw_xml());
 
        dcp::SMPTESubtitleAsset test_2007(dcp::SubtitleStandard::SMPTE_2007);
-       test_2007.set_metadata(metadata);
        test_2007.set_issue_date(dcp::LocalTime("2020-01-01T14:00:00"));
        test_2007.write(out / "2007.mxf");
-       check_file(ref / "2007.mxf", out / "2007.mxf");
+       BOOST_CHECK(dcp::SMPTESubtitleAsset(ref / "2007.mxf").raw_xml() == dcp::SMPTESubtitleAsset(out / "2007.mxf").raw_xml());
 }