summaryrefslogtreecommitdiff
path: root/test/srt_subtitle_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-07-29 02:26:33 +0200
committerCarl Hetherington <cth@carlh.net>2023-07-29 02:26:34 +0200
commit430825272e1a6cf266a184afe5acc0fa9811fff8 (patch)
treee2bdf7d8b441ae5818264c6b53675c40fba2055f /test/srt_subtitle_test.cc
parent67f39ff3eebb5ac727324b12130ff9cc262e9ffa (diff)
Don't check sound assets in some tests.
When fiddling with MXF channel counts it makes a lot of tests fail that probably don't need to.
Diffstat (limited to 'test/srt_subtitle_test.cc')
-rw-r--r--test/srt_subtitle_test.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/srt_subtitle_test.cc b/test/srt_subtitle_test.cc
index 63d508b76..3863ebf9f 100644
--- a/test/srt_subtitle_test.cc
+++ b/test/srt_subtitle_test.cc
@@ -101,8 +101,8 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test2)
dcp::VerificationNote::Code::MISSING_CPL_METADATA
});
- /* Should be blank video with a subtitle MXF */
- check_dcp ("test/data/srt_subtitle_test2", film->dir (film->dcp_name ()));
+ /* Should be blank video with a subtitle MXF; sound is irrelevant */
+ check_dcp("test/data/srt_subtitle_test2", film->dir(film->dcp_name()), true);
}
@@ -158,8 +158,8 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test4)
dcp::VerificationNote::Code::MISSING_CPL_METADATA
});
- /* Should be blank video with MXF subtitles */
- check_dcp ("test/data/xml_subtitle_test", film->dir (film->dcp_name ()));
+ /* Should be blank video with MXF subtitles; sound is irrelevant */
+ check_dcp("test/data/xml_subtitle_test", film->dir(film->dcp_name()), true);
}
@@ -203,7 +203,11 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test6)
dcp::VerificationNote::Code::INVALID_SUBTITLE_SPACING,
});
- check_dcp ("test/data/srt_subtitle_test6", film->dir(film->dcp_name()));
+ /* This test is concerned with the subtitles, so we'll ignore any
+ * differences in sound between the DCP and the reference to avoid test
+ * failures for unrelated reasons.
+ */
+ check_dcp("test/data/srt_subtitle_test6", film->dir(film->dcp_name()), true);
}