Fix crash with sub-sample push parts in AudioMerger.
[dcpomatic.git] / test / empty_test.cc
index 890185267d7a61636375396d6f7c4f7cdf25ee26..428d0f9bb3e75d4c1bb9ac99f92a225068682ade 100644 (file)
@@ -30,6 +30,7 @@
 #include <boost/test/unit_test.hpp>
 
 using boost::shared_ptr;
+using namespace dcpomatic;
 
 bool
 has_video (shared_ptr<Piece> piece)
@@ -49,7 +50,7 @@ BOOST_AUTO_TEST_CASE (empty_test1)
 
        film->examine_and_add_content (contentA);
        film->examine_and_add_content (contentB);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        int const vfr = film->video_frame_rate ();
 
@@ -82,7 +83,7 @@ BOOST_AUTO_TEST_CASE (empty_test2)
 
        film->examine_and_add_content (contentA);
        film->examine_and_add_content (contentB);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        int const vfr = film->video_frame_rate ();