diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-02-26 20:56:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-26 20:56:34 +0100 |
| commit | 894348aee4be18cbae4bb598e904fca98dda475c (patch) | |
| tree | 3ac56242f4244166ad274c971b485ca59d2edf4a /test | |
| parent | f9f65c9d3bb19d82b00f1925bb6c1f3486451f09 (diff) | |
Fix tests with different library versions.
Diffstat (limited to 'test')
| -rw-r--r-- | test/smpte_subtitle_test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/smpte_subtitle_test.cc b/test/smpte_subtitle_test.cc index a23a7c45..e5cdfa23 100644 --- a/test/smpte_subtitle_test.cc +++ b/test/smpte_subtitle_test.cc @@ -719,17 +719,24 @@ 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"); 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"); 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"); |
