Don't crash when failing to parse a KDM.
[dcpomatic.git] / test / reels_test.cc
index 1951d53748a8f9b4cfeda161c8b83fb3d0fd6bed..b53f26ede7743d73a28fdf7532785d5616765ad5 100644 (file)
 
 */
 
+/** @file  test/reels_test.cc
+ *  @brief Check manipulation of reels in various ways.
+ *  @ingroup specific
+ */
+
 #include "lib/film.h"
 #include "lib/ratio.h"
 #include "lib/ffmpeg_content.h"
@@ -123,7 +128,7 @@ BOOST_AUTO_TEST_CASE (reels_test2)
 
        shared_ptr<DCPContent> c (new DCPContent (film2, film->dir (film->dcp_name ())));
        film2->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs ());
 
        list<DCPTimePeriod> r = film2->reels ();
        BOOST_CHECK_EQUAL (r.size(), 3);