Add another failing reels test.
authorCarl Hetherington <cth@carlh.net>
Wed, 27 Dec 2017 23:51:50 +0000 (23:51 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 27 Dec 2017 23:51:50 +0000 (23:51 +0000)
test/data
test/reels_test.cc

index b5e37d2..4f43d4d 160000 (submodule)
--- a/test/data
+++ b/test/data
@@ -1 +1 @@
-Subproject commit b5e37d2b241a6397b7d53bef57b49d409adf236a
+Subproject commit 4f43d4d9b436448681303e9fa51ae63a81e197e6
index ef13481..db1d7e5 100644 (file)
@@ -344,3 +344,27 @@ BOOST_AUTO_TEST_CASE (reels_test8)
        film->make_dcp ();
        BOOST_REQUIRE (!wait_for_jobs ());
 }
+
+/** Check another reels-wrleated error; make_dcp() would raise a ProgrammingError */
+BOOST_AUTO_TEST_CASE (reels_test9)
+{
+       shared_ptr<Film> film = new_test_film2("reels_test9a");
+       shared_ptr<FFmpegContent> A(new FFmpegContent(film, "test/data/flat_red.png"));
+       film->examine_and_add_content(A);
+       BOOST_REQUIRE(!wait_for_jobs());
+       A->video->set_length(5 * 24);
+       film->make_dcp();
+       BOOST_REQUIRE(!wait_for_jobs());
+
+       shared_ptr<Film> film2 = new_test_film2("reels_test9b");
+       shared_ptr<DCPContent> B(new DCPContent(film2, film->dir(film->dcp_name())));
+       film2->examine_and_add_content(B);
+       film2->examine_and_add_content(content_factory(film, "test/data/dcp_sub4.xml").front());
+       B->set_reference_video(true);
+       B->set_reference_audio(true);
+       BOOST_REQUIRE(!wait_for_jobs());
+       film2->set_reel_type(REELTYPE_BY_VIDEO_CONTENT);
+       film2->write_metadata();
+       film2->make_dcp();
+       BOOST_REQUIRE(!wait_for_jobs());
+}