From 308fb04d15cecb471c8c04db40d2979810efefe3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 2 Feb 2018 21:23:03 +0000 Subject: Fix incorrect test subtitle gathering; fix a few missing standard-setting calls. --- test/dcp_subtitle_test.cc | 9 ++++++++- test/scaling_test.cc | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/dcp_subtitle_test.cc b/test/dcp_subtitle_test.cc index b4dfe1df7..407ac2616 100644 --- a/test/dcp_subtitle_test.cc +++ b/test/dcp_subtitle_test.cc @@ -47,7 +47,13 @@ optional stored; static void store (ContentTextSubtitle sub) { - stored = sub; + if (!stored) { + stored = sub; + } else { + BOOST_FOREACH (dcp::SubtitleString i, sub.subs) { + stored->subs.push_back (i); + } + } } /** Test pass-through of a very simple DCP subtitle file */ @@ -57,6 +63,7 @@ BOOST_AUTO_TEST_CASE (dcp_subtitle_test) film->set_container (Ratio::from_id ("185")); film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR")); film->set_name ("frobozz"); + film->set_interop (false); shared_ptr content (new DCPSubtitleContent (film, "test/data/dcp_sub.xml")); film->examine_and_add_content (content); wait_for_jobs (); diff --git a/test/scaling_test.cc b/test/scaling_test.cc index 13276977d..ed0461005 100644 --- a/test/scaling_test.cc +++ b/test/scaling_test.cc @@ -38,6 +38,7 @@ static void scaling_test_for (shared_ptr film, shared_ptr content { content->video->set_scale (VideoContentScale (Ratio::from_id (image))); film->set_container (Ratio::from_id (container)); + film->set_interop (false); film->make_dcp (); wait_for_jobs (); -- cgit v1.2.3