Fix previous.
[dcpomatic.git] / test / reels_test.cc
index 9e8e120a6822072054a75a8e811ccabb12d5f178..87cb3d54d5d229c5eecaf3db6f671b94c6d52657 100644 (file)
@@ -233,13 +233,13 @@ BOOST_AUTO_TEST_CASE (reels_test4)
 
 BOOST_AUTO_TEST_CASE (reels_test5)
 {
-       shared_ptr<Film> film = new_test_film ("reels_test4");
+       shared_ptr<Film> film = new_test_film ("reels_test5");
        shared_ptr<DCPContent> dcp (new DCPContent (film, "test/data/reels_test4"));
        film->examine_and_add_content (dcp);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs ());
 
-       /* Set to 123 but it will be rounded up to the next frame (4000) */
-       dcp->set_position(DCPTime(123));
+       /* Set to 2123 but it will be rounded up to the next frame (4000) */
+       dcp->set_position(DCPTime(2123));
 
        {
                list<DCPTimePeriod> p = dcp->reels ();
@@ -342,7 +342,6 @@ BOOST_AUTO_TEST_CASE (reels_test8)
        BOOST_REQUIRE (!wait_for_jobs ());
 
        A->set_trim_end (ContentTime::from_seconds (1));
-       cout << to_string(A->length_after_trim()) << "\n";
        film->make_dcp ();
        BOOST_REQUIRE (!wait_for_jobs ());
 }