Stop jobs silently failing in tests.
authorCarl Hetherington <cth@carlh.net>
Mon, 21 Jan 2019 11:06:13 +0000 (11:06 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 21 Jan 2019 11:06:13 +0000 (11:06 +0000)
35 files changed:
test/4k_test.cc
test/audio_analysis_test.cc
test/audio_delay_test.cc
test/audio_processor_test.cc
test/burnt_subtitle_test.cc
test/dcp_playback_test.cc
test/digest_test.cc
test/empty_test.cc
test/ffmpeg_audio_only_test.cc
test/ffmpeg_audio_test.cc
test/ffmpeg_decoder_seek_test.cc
test/ffmpeg_decoder_sequential_test.cc
test/ffmpeg_pts_offset_test.cc
test/file_naming_test.cc
test/frame_rate_test.cc
test/image_content_fade_test.cc
test/interrupt_encoder_test.cc
test/isdcf_name_test.cc
test/j2k_bandwidth_test.cc
test/player_test.cc
test/recover_test.cc
test/reels_test.cc
test/repeat_frame_test.cc
test/required_disk_space_test.cc
test/scaling_test.cc
test/silence_padding_test.cc
test/skip_frame_test.cc
test/srt_subtitle_test.cc
test/ssa_subtitle_test.cc
test/threed_test.cc
test/torture_test.cc
test/upmixer_a_test.cc
test/vf_kdm_test.cc
test/vf_test.cc
test/video_mxf_content_test.cc

index 82c5a25..71d60f5 100644 (file)
@@ -48,12 +48,12 @@ BOOST_AUTO_TEST_CASE (fourk_test)
        film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR"));
        film->set_container (Ratio::from_id ("185"));
        film->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        c->video->set_scale (VideoContentScale (Ratio::from_id ("185")));
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path p (test_film_dir ("4k_test"));
        p /= film->dcp_name ();
index 2fbaef7..a2da8d6 100644 (file)
@@ -114,12 +114,12 @@ BOOST_AUTO_TEST_CASE (audio_analysis_test)
 
        shared_ptr<FFmpegContent> c (new FFmpegContent(p));
        film->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        shared_ptr<AnalyseAudioJob> job (new AnalyseAudioJob (film, film->playlist(), false));
        job->Finished.connect (boost::bind (&finished));
        JobManager::instance()->add (job);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 }
 
 /** Check that audio analysis works (i.e. runs without error) with a -ve delay */
@@ -129,14 +129,14 @@ BOOST_AUTO_TEST_CASE (audio_analysis_negative_delay_test)
        film->set_name ("audio_analysis_negative_delay_test");
        shared_ptr<FFmpegContent> c (new FFmpegContent(private_data / "boon_telly.mkv"));
        film->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        c->audio->set_delay (-250);
 
        shared_ptr<AnalyseAudioJob> job (new AnalyseAudioJob (film, film->playlist(), false));
        job->Finished.connect (boost::bind (&finished));
        JobManager::instance()->add (job);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 }
 
 /** Check audio analysis that is incorrect in 2e98263 */
@@ -146,12 +146,12 @@ BOOST_AUTO_TEST_CASE (audio_analysis_test2)
        film->set_name ("audio_analysis_test2");
        shared_ptr<FFmpegContent> c (new FFmpegContent(private_data / "3d_thx_broadway_2010_lossless.m2ts"));
        film->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        shared_ptr<AnalyseAudioJob> job (new AnalyseAudioJob (film, film->playlist(), false));
        job->Finished.connect (boost::bind (&finished));
        JobManager::instance()->add (job);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 }
 
 
@@ -175,12 +175,12 @@ BOOST_AUTO_TEST_CASE (audio_analysis_test3)
 
        shared_ptr<FFmpegContent> content (new FFmpegContent("test/data/white.wav"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->set_audio_channels (12);
        boost::signals2::connection connection;
        JobManager::instance()->analyse_audio (film, film->playlist(), false, connection, boost::bind (&analysis_finished));
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        BOOST_CHECK (done);
 }
 
@@ -193,7 +193,7 @@ BOOST_AUTO_TEST_CASE (analyse_audio_test4)
        film->set_name ("frobozz");
        shared_ptr<Content> content = content_factory(private_data / "20 The Wedding Convoy Song.m4a").front();
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        shared_ptr<Playlist> playlist (new Playlist);
        playlist->add (film, content);
index d486364..9e738d1 100644 (file)
@@ -60,11 +60,11 @@ void test_audio_delay (int delay_in_ms)
 
        shared_ptr<FFmpegContent> content (new FFmpegContent("test/data/staircase.wav"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        content->audio->set_delay (delay_in_ms);
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path path = "build/test";
        path /= film_name;
index 9c79083..4e917bd 100644 (file)
@@ -41,7 +41,7 @@ BOOST_AUTO_TEST_CASE (audio_processor_test)
        film->set_name ("audio_processor_test");
        shared_ptr<FFmpegContent> c (new FFmpegContent("test/data/white.wav"));
        film->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->set_audio_channels (6);
        film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TST"));
@@ -50,10 +50,10 @@ BOOST_AUTO_TEST_CASE (audio_processor_test)
        /* Analyse the audio and check it doesn't crash */
        shared_ptr<AnalyseAudioJob> job (new AnalyseAudioJob (film, film->playlist(), false));
        JobManager::instance()->add (job);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Make a DCP and check it */
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        check_dcp ("test/data/audio_processor_test", film->dir (film->dcp_name ()));
 }
index 40dac67..91edcad 100644 (file)
@@ -63,9 +63,9 @@ BOOST_AUTO_TEST_CASE (burnt_subtitle_test_subrip)
        content->subtitle->set_use (true);
        content->subtitle->set_burn (true);
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        check_dcp ("test/data/burnt_subtitle_test_subrip", film->dir (film->dcp_name ()));
 }
@@ -80,9 +80,9 @@ BOOST_AUTO_TEST_CASE (burnt_subtitle_test_dcp)
        shared_ptr<DCPTextContent> content (new DCPTextContent (film, "test/data/dcp_sub.xml"));
        content->subtitle->set_use (true);
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        check_dcp ("test/data/burnt_subtitle_test_dcp", film->dir (film->dcp_name ()));
 }
index afefbac..04a0eab 100644 (file)
@@ -35,7 +35,7 @@ BOOST_AUTO_TEST_CASE (dcp_playback_test)
        shared_ptr<Film> film = new_test_film ("dcp_playback_test");
        shared_ptr<DCPContent> content (new DCPContent(private_data / "JourneyToJah_TLR-1_F_EN-DE-FR_CH_51_2K_LOK_20140225_DGL_SMPTE_OV"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        shared_ptr<Butler> butler (
                new Butler(
index a3fd6c8..68e4437 100644 (file)
@@ -70,11 +70,11 @@ BOOST_AUTO_TEST_CASE (digest_test)
        film->examine_and_add_content (g);
        film->examine_and_add_content (b);
        film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        Config::instance()->set_master_encoding_threads (4);
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        Config::instance()->set_master_encoding_threads (1);
 
        dcp::DCP dcp (film->dir (film->dcp_name ()));
index 8901852..86ce207 100644 (file)
@@ -49,7 +49,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 +82,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 ();
 
index 8e2993e..a8a7184 100644 (file)
@@ -74,12 +74,12 @@ test (boost::filesystem::path file)
        film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TST"));
        shared_ptr<FFmpegContent> c (new FFmpegContent(file));
        film->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        film->write_metadata ();
 
        /* See if can make a DCP without any errors */
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        BOOST_CHECK (!JobManager::instance()->errors());
 
        /* Compare the audio data player reads with what libsndfile reads */
index 7a21ced..067075d 100644 (file)
@@ -51,7 +51,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_audio_test)
        shared_ptr<FFmpegContent> c (new FFmpegContent ("test/data/staircase.mov"));
        film->examine_and_add_content (c);
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        c->video->set_scale (VideoContentScale (Ratio::from_id ("185")));
 
@@ -61,7 +61,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_audio_test)
        film->make_dcp ();
        film->write_metadata ();
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path path = "build/test";
        path /= "ffmpeg_audio_test";
index b8bfe35..c69c74c 100644 (file)
@@ -72,7 +72,7 @@ test (boost::filesystem::path file, vector<int> frames)
        shared_ptr<Film> film = new_test_film ("ffmpeg_decoder_seek_test_" + file.string());
        shared_ptr<FFmpegContent> content (new FFmpegContent (path));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        shared_ptr<FFmpegDecoder> decoder (new FFmpegDecoder (film, content, false));
        decoder->video->Data.connect (bind (&store, _1));
 
index 50c96af..892bc9e 100644 (file)
@@ -63,7 +63,7 @@ ffmpeg_decoder_sequential_test_one (boost::filesystem::path file, float fps, int
        shared_ptr<Film> film = new_test_film ("ffmpeg_decoder_sequential_test_" + file.string());
        shared_ptr<FFmpegContent> content (new FFmpegContent(path));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        film->write_metadata ();
        shared_ptr<Log> log (new NullLog);
        shared_ptr<Player> player (new Player (film, film->playlist()));
index 1d36192..18f8971 100644 (file)
@@ -38,7 +38,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_pts_offset_test)
        shared_ptr<Film> film = new_test_film ("ffmpeg_pts_offset_test");
        shared_ptr<FFmpegContent> content (new FFmpegContent ("test/data/test.mp4"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        content->audio.reset (new AudioContent (content.get()));
        content->audio->add_stream (shared_ptr<FFmpegAudioStream> (new FFmpegAudioStream));
index f06fdfa..6b5b202 100644 (file)
@@ -65,11 +65,11 @@ BOOST_AUTO_TEST_CASE (file_naming_test)
        film->examine_and_add_content (g);
        shared_ptr<FFmpegContent> b (new FFmpegContent("test/data/flat_blue.png"));
        film->examine_and_add_content (b);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        int got[3] = { 0, 0, 0 };
        for (
@@ -104,11 +104,11 @@ BOOST_AUTO_TEST_CASE (file_naming_test2)
        film->examine_and_add_content (g);
        shared_ptr<FFmpegContent> b (new FFmpegContent("test/data/flat_blue.png"));
        film->examine_and_add_content (b);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        int got[3] = { 0, 0, 0 };
        for (
index af04e1a..0a31294 100644 (file)
@@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE (best_dcp_frame_rate_test_single)
        /* Get any piece of content, it doesn't matter what */
        shared_ptr<FFmpegContent> content (new FFmpegContent("test/data/test.mp4"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Run some tests with a limited range of allowed rates */
 
@@ -226,7 +226,7 @@ BOOST_AUTO_TEST_CASE (best_dcp_frame_rate_test_double)
        film->examine_and_add_content (A);
        shared_ptr<FFmpegContent> B (new FFmpegContent("test/data/test.mp4"));
        film->examine_and_add_content (B);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Run some tests with a limited range of allowed rates */
 
@@ -255,7 +255,7 @@ BOOST_AUTO_TEST_CASE (audio_sampling_rate_test)
        /* Get any piece of content, it doesn't matter what */
        shared_ptr<FFmpegContent> content (new FFmpegContent("test/data/test.mp4"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        std::list<int> afr;
        afr.push_back (24);
index a3f0932..30da3ef 100644 (file)
@@ -34,11 +34,11 @@ BOOST_AUTO_TEST_CASE (image_content_fade_test)
        shared_ptr<Film> film = new_test_film2 ("image_content_fade_test");
        shared_ptr<Content> content = content_factory("test/data/flat_red.png").front();
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        content->video->set_fade_in (1);
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        check_dcp ("test/data/image_content_fade_test", film->dir(film->dcp_name()));
 }
index 20a4424..c6145d8 100644 (file)
@@ -47,7 +47,7 @@ BOOST_AUTO_TEST_CASE (interrupt_encoder_test)
 
        shared_ptr<FFmpegContent> content (new FFmpegContent(private_data / "prophet_long_clip.mkv"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->make_dcp ();
 
index a33a6a4..c65340e 100644 (file)
@@ -90,7 +90,7 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test)
 
        shared_ptr<ImageContent> content (new ImageContent ("test/data/simple_testcard_640x480.png"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        content->video->set_scale (VideoContentScale (Ratio::from_id ("133")));
        film->set_container (Ratio::from_id ("185"));
        BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_TLR-2_F_DE-fr_US-R_MOS_4K_DI_20140704_PP_SMPTE_OV");
@@ -151,7 +151,7 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test)
        film->set_audio_channels (6);
        shared_ptr<FFmpegContent> sound (new FFmpegContent("test/data/sine_440.wav"));
        film->examine_and_add_content (sound);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        BOOST_CHECK_EQUAL (film->isdcf_name(false), "LikeShouting_XSN-2_F-133_DE-fr_US-R_10_4K_DI_20140704_PP_SMPTE_OV");
 
        AudioMapping mapping = sound->audio->mapping ();
index 92f6f90..40309df 100644 (file)
@@ -47,10 +47,10 @@ check (int target_bits_per_second)
        film->set_j2k_bandwidth (target_bits_per_second);
        shared_ptr<ImageContent> content (new ImageContent(private_data / "prophet_frame.tiff"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        content->video->set_length (24 * duration);
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::directory_iterator i (boost::filesystem::path ("build") / "test" / name / "video");
        boost::filesystem::path test = *i++;
index 9d6641c..15bdb61 100644 (file)
@@ -68,7 +68,7 @@ BOOST_AUTO_TEST_CASE (player_silence_padding_test)
        film->set_audio_channels (6);
 
        film->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        accumulated.reset (new AudioBuffers (film->audio_channels(), 0));
 
@@ -99,7 +99,7 @@ BOOST_AUTO_TEST_CASE (player_black_fill_test)
 
        film->examine_and_add_content (contentA);
        film->examine_and_add_content (contentB);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        contentA->video->set_scale (VideoContentScale (Ratio::from_id ("185")));
        contentA->video->set_length (3);
@@ -110,7 +110,7 @@ BOOST_AUTO_TEST_CASE (player_black_fill_test)
 
        film->make_dcp ();
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path ref;
        ref = "test";
index 017c019..0a73b0c 100644 (file)
@@ -57,10 +57,10 @@ BOOST_AUTO_TEST_CASE (recover_test_2d)
 
        shared_ptr<FFmpegContent> content (new FFmpegContent("test/data/count300bd24.m2ts"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path const video = "build/test/recover_test_2d/video/185_2K_84d36460538435d5d511ee533c8528df_24_100000000_P_S_0_1200000.mxf";
        boost::filesystem::copy_file (
@@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE (recover_test_2d)
        boost::filesystem::resize_file (video, 2 * 1024 * 1024);
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        shared_ptr<dcp::MonoPictureAsset> A (new dcp::MonoPictureAsset ("build/test/recover_test_2d/original.mxf"));
        shared_ptr<dcp::MonoPictureAsset> B (new dcp::MonoPictureAsset (video));
@@ -92,10 +92,10 @@ BOOST_AUTO_TEST_CASE (recover_test_3d)
        shared_ptr<ImageContent> content (new ImageContent("test/data/3d_test"));
        content->video->set_frame_type (VIDEO_FRAME_TYPE_3D_LEFT_RIGHT);
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path const video = "build/test/recover_test_3d/video/185_2K_961f053444e90c5ddbf978eb0ebfa772_24_100000000_P_S_3D_0_96000.mxf";
 
@@ -107,7 +107,7 @@ BOOST_AUTO_TEST_CASE (recover_test_3d)
        boost::filesystem::resize_file (video, 2 * 1024 * 1024);
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        shared_ptr<dcp::StereoPictureAsset> A (new dcp::StereoPictureAsset ("build/test/recover_test_3d/original.mxf"));
        shared_ptr<dcp::StereoPictureAsset> B (new dcp::StereoPictureAsset (video));
@@ -128,10 +128,10 @@ BOOST_AUTO_TEST_CASE (recover_test_2d_encrypted)
 
        shared_ptr<FFmpegContent> content (new FFmpegContent("test/data/count300bd24.m2ts"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path const video =
                "build/test/recover_test_2d_encrypted/video/185_2K_84d36460538435d5d511ee533c8528df_24_100000000_E_S_0_1200000.mxf";
@@ -144,7 +144,7 @@ BOOST_AUTO_TEST_CASE (recover_test_2d_encrypted)
        boost::filesystem::resize_file (video, 2 * 1024 * 1024);
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        shared_ptr<dcp::MonoPictureAsset> A (new dcp::MonoPictureAsset ("build/test/recover_test_2d_encrypted/original.mxf"));
        A->set_key (film->key ());
index c27762f..eea9ebf 100644 (file)
@@ -49,7 +49,7 @@ BOOST_AUTO_TEST_CASE (reels_test1)
        film->examine_and_add_content (A);
        shared_ptr<FFmpegContent> B (new FFmpegContent("test/data/test.mp4"));
        film->examine_and_add_content (B);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        BOOST_CHECK_EQUAL (A->full_length(film).get(), 288000);
 
        film->set_reel_type (REELTYPE_SINGLE);
@@ -97,29 +97,29 @@ BOOST_AUTO_TEST_CASE (reels_test2)
        {
                shared_ptr<ImageContent> c (new ImageContent("test/data/flat_red.png"));
                film->examine_and_add_content (c);
-               wait_for_jobs ();
+               BOOST_REQUIRE (!wait_for_jobs());
                c->video->set_length (24);
        }
 
        {
                shared_ptr<ImageContent> c (new ImageContent("test/data/flat_green.png"));
                film->examine_and_add_content (c);
-               wait_for_jobs ();
+               BOOST_REQUIRE (!wait_for_jobs());
                c->video->set_length (24);
        }
 
        {
                shared_ptr<ImageContent> c (new ImageContent("test/data/flat_blue.png"));
                film->examine_and_add_content (c);
-               wait_for_jobs ();
+               BOOST_REQUIRE (!wait_for_jobs());
                c->video->set_length (24);
        }
 
        film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        check_dcp ("test/data/reels_test2", film->dir (film->dcp_name()));
 
@@ -149,7 +149,7 @@ BOOST_AUTO_TEST_CASE (reels_test2)
        c->set_reference_audio (true);
 
        film2->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 }
 
 /** Check that REELTYPE_BY_VIDEO_CONTENT adds an extra reel, if necessary, at the end
@@ -167,7 +167,7 @@ BOOST_AUTO_TEST_CASE (reels_test3)
        film->examine_and_add_content (dcp);
        shared_ptr<Content> sub (new StringTextFileContent("test/data/subrip.srt"));
        film->examine_and_add_content (sub);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        list<DCPTimePeriod> reels = film->reels();
        BOOST_REQUIRE_EQUAL (reels.size(), 4);
@@ -202,13 +202,13 @@ BOOST_AUTO_TEST_CASE (reels_test4)
        for (int i = 0; i < 4; ++i) {
                content[i].reset (new ImageContent("test/data/flat_green.png"));
                film->examine_and_add_content (content[i]);
-               wait_for_jobs ();
+               BOOST_REQUIRE (!wait_for_jobs());
                content[i]->video->set_length (24);
        }
 
        shared_ptr<StringTextFileContent> subs (new StringTextFileContent("test/data/subrip3.srt"));
        film->examine_and_add_content (subs);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        list<DCPTimePeriod> reels = film->reels();
        BOOST_REQUIRE_EQUAL (reels.size(), 4);
@@ -226,7 +226,7 @@ BOOST_AUTO_TEST_CASE (reels_test4)
        BOOST_CHECK_EQUAL (i->to.get(), 96000 * 4);
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        check_dcp ("test/data/reels_test4", film->dir (film->dcp_name()));
 }
index badf5d9..d5ee0c0 100644 (file)
@@ -46,13 +46,13 @@ BOOST_AUTO_TEST_CASE (repeat_frame_test)
        shared_ptr<FFmpegContent> c (new FFmpegContent("test/data/red_24.mp4"));
        film->examine_and_add_content (c);
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        c->video->set_scale (VideoContentScale (Ratio::from_id ("185")));
 
        film->set_video_frame_rate (48);
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Should be 32 frames of red */
        check_dcp ("test/data/repeat_frame_test", film->dir (film->dcp_name ()));
index 812b35f..a66b664 100644 (file)
@@ -48,7 +48,7 @@ BOOST_AUTO_TEST_CASE (required_disk_space_test)
        film->examine_and_add_content (content_a);
        shared_ptr<DCPContent> content_b (new DCPContent("test/data/burnt_subtitle_test_dcp"));
        film->examine_and_add_content (content_b);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        film->write_metadata ();
 
        check_within_n (
index d2f8867..93c9947 100644 (file)
@@ -41,7 +41,7 @@ static void scaling_test_for (shared_ptr<Film> film, shared_ptr<Content> content
        film->set_interop (false);
        film->make_dcp ();
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path ref;
        ref = "test";
@@ -66,7 +66,7 @@ BOOST_AUTO_TEST_CASE (scaling_test)
 
        film->examine_and_add_content (imc);
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        imc->video->set_length (1);
 
index 2bc0c3b..b5725bb 100644 (file)
@@ -52,11 +52,11 @@ test_silence_padding (int channels)
 
        shared_ptr<FFmpegContent> content (new FFmpegContent("test/data/staircase.wav"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        film->set_audio_channels (channels);
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path path = "build/test";
        path /= film_name;
index 6c08291..e30143b 100644 (file)
@@ -46,14 +46,14 @@ BOOST_AUTO_TEST_CASE (skip_frame_test)
        shared_ptr<FFmpegContent> c (new FFmpegContent("test/data/count300bd48.m2ts"));
        film->examine_and_add_content (c);
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        c->video->set_scale (VideoContentScale (Ratio::from_id ("185")));
        film->write_metadata ();
 
        film->set_video_frame_rate (24);
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Should be white numbers on a black background counting up from 2 in steps of 2
           up to 300.
index 31a0820..3064abc 100644 (file)
@@ -49,12 +49,12 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test)
        film->set_interop (false);
        shared_ptr<StringTextFileContent> content (new StringTextFileContent("test/data/subrip2.srt"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        content->only_text()->set_use (true);
        content->only_text()->set_burn (false);
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Should be blank video with a subtitle MXF */
        check_dcp ("test/data/srt_subtitle_test", film->dir (film->dcp_name ()));
@@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test2)
        film->set_interop (false);
        shared_ptr<StringTextFileContent> content (new StringTextFileContent ("test/data/subrip2.srt"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        content->only_text()->set_use (true);
        content->only_text()->set_burn (false);
@@ -79,7 +79,7 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test2)
        content->only_text()->fonts().front()->set_file (FontFiles::NORMAL, "test/data/subrip2.srt");
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Should be blank video with a subtitle MXF */
        check_dcp ("test/data/srt_subtitle_test2", film->dir (film->dcp_name ()));
@@ -106,13 +106,13 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test3)
        film->set_audio_channels (6);
        shared_ptr<StringTextFileContent> content (new StringTextFileContent(private_data / "Ankoemmling_short.srt"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        content->only_text()->set_use (true);
        content->only_text()->set_burn (false);
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        check_subtitle_file (film, private_data / "Ankoemmling_short.xml");
 }
@@ -129,9 +129,9 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test4)
        content->only_text()->set_use (true);
        content->only_text()->set_burn (false);
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Should be blank video with MXF subtitles */
        check_dcp ("test/data/xml_subtitle_test", film->dir (film->dcp_name ()));
@@ -151,10 +151,10 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test5)
        content->only_text()->set_burn (false);
        film->examine_and_add_content (content);
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        content->set_position (film, DCPTime());
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        film->write_metadata ();
 
        check_dcp ("test/data/xml_subtitle_test2", film->dir (film->dcp_name ()));
index c1524bc..c61d34b 100644 (file)
@@ -49,13 +49,13 @@ BOOST_AUTO_TEST_CASE (ssa_subtitle_test1)
        film->set_interop (true);
        shared_ptr<StringTextFileContent> content (new StringTextFileContent(private_data / "DKH_UT_EN20160601def.ssa"));
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        content->only_text()->set_use (true);
        content->only_text()->set_burn (false);
 
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Find the subtitle file and check it */
        list<string> ignore;
index a8d3f8a..f8a4e85 100644 (file)
@@ -42,7 +42,7 @@ BOOST_AUTO_TEST_CASE (threed_test1)
        film->set_name ("test_film1");
        shared_ptr<FFmpegContent> c (new FFmpegContent("test/data/test.mp4"));
        film->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        c->video->set_frame_type (VIDEO_FRAME_TYPE_3D_LEFT_RIGHT);
        c->video->set_scale (VideoContentScale (Ratio::from_id ("185")));
@@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE (threed_test2)
        film->set_name ("test_film2");
        shared_ptr<FFmpegContent> c (new FFmpegContent("test/data/test.mp4"));
        film->examine_and_add_content (c);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        c->video->set_frame_type (VIDEO_FRAME_TYPE_3D_ALTERNATE);
        c->video->set_scale (VideoContentScale (Ratio::from_id ("185")));
@@ -89,7 +89,7 @@ BOOST_AUTO_TEST_CASE (threed_test3)
        film->examine_and_add_content (L);
        shared_ptr<FFmpegContent> R (new FFmpegContent("test/data/test.mp4"));
        film->examine_and_add_content (R);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        L->video->set_frame_type (VIDEO_FRAME_TYPE_3D_LEFT);
        R->video->set_frame_type (VIDEO_FRAME_TYPE_3D_RIGHT);
@@ -108,7 +108,7 @@ BOOST_AUTO_TEST_CASE (threed_test4)
        film->examine_and_add_content (L);
        shared_ptr<FFmpegContent> R (new FFmpegContent(private_data / "RIGHT_TEST_DCP3D4K.mov"));
        film->examine_and_add_content (R);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        L->video->set_frame_type (VIDEO_FRAME_TYPE_3D_LEFT);
        R->video->set_frame_type (VIDEO_FRAME_TYPE_3D_RIGHT);
@@ -127,7 +127,7 @@ BOOST_AUTO_TEST_CASE (threed_test5)
        film->examine_and_add_content (L);
        shared_ptr<FFmpegContent> R (new FFmpegContent(private_data / "boon_telly.mkv"));
        film->examine_and_add_content (R);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        L->video->set_frame_type (VIDEO_FRAME_TYPE_3D_LEFT);
        R->video->set_frame_type (VIDEO_FRAME_TYPE_3D_RIGHT);
index b607909..5525eb0 100644 (file)
@@ -58,7 +58,7 @@ BOOST_AUTO_TEST_CASE (torture_test1)
        /* Staircase at an offset of 2000 samples, trimmed both start and end, with a gain of 6dB */
        shared_ptr<Content> staircase = content_factory("test/data/staircase.wav").front ();
        film->examine_and_add_content (staircase);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        staircase->set_position (film, DCPTime::from_frames (2000, film->audio_frame_rate()));
        staircase->set_trim_start (ContentTime::from_frames (12, 48000));
        staircase->set_trim_end (ContentTime::from_frames (35, 48000));
@@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE (torture_test1)
        /* And again at an offset of 50000 samples, trimmed both start and end, with a gain of 6dB */
        staircase = content_factory("test/data/staircase.wav").front ();
        film->examine_and_add_content (staircase);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        staircase->set_position (film, DCPTime::from_frames(50000, film->audio_frame_rate()));
        staircase->set_trim_start (ContentTime::from_frames (12, 48000));
        staircase->set_trim_end (ContentTime::from_frames (35, 48000));
@@ -76,14 +76,14 @@ BOOST_AUTO_TEST_CASE (torture_test1)
        /* 1s of red at 5s in */
        shared_ptr<Content> red = content_factory("test/data/flat_red.png").front ();
        film->examine_and_add_content (red);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        red->set_position (film, DCPTime::from_seconds(5));
        red->video->set_length (24);
 
        film->set_video_frame_rate (24);
        film->write_metadata ();
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        dcp::DCP dcp ("build/test/torture_test1/" + film->dcp_name(false));
        dcp.read ();
index c89d3f2..5643310 100644 (file)
@@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE (upmixer_a_test)
        shared_ptr<FFmpegContent> content (new FFmpegContent ("test/data/white.wav"));
        film->examine_and_add_content (content);
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        SF_INFO info;
        info.samplerate = 48000;
index 9b48f9b..a28ea5b 100644 (file)
@@ -53,9 +53,9 @@ BOOST_AUTO_TEST_CASE (vf_kdm_test)
        shared_ptr<FFmpegContent> c (new FFmpegContent("test/data/test.mp4"));
        A->examine_and_add_content (c);
        A->set_encrypted (true);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        A->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        dcp::DCP A_dcp ("build/test/vf_kdm_test_ov/" + A->dcp_name());
        A_dcp.read ();
@@ -85,9 +85,9 @@ BOOST_AUTO_TEST_CASE (vf_kdm_test)
        d->set_reference_video (true);
        B->examine_and_add_content (d);
        B->set_encrypted (true);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        B->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        dcp::DCP B_dcp ("build/test/vf_kdm_test_vf/" + B->dcp_name());
        B_dcp.read ();
@@ -116,9 +116,9 @@ BOOST_AUTO_TEST_CASE (vf_kdm_test)
        e->add_kdm (B_kdm);
        e->add_ov ("build/test/vf_kdm_test_ov/" + A->dcp_name());
        C->examine_and_add_content (e);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        C->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Should be 1s red, 1s green, 1s blue */
        check_dcp ("test/data/vf_kdm_test_check", "build/test/vf_kdm_test_check/" + C->dcp_name());
index 285139f..392b049 100644 (file)
@@ -50,7 +50,7 @@ BOOST_AUTO_TEST_CASE (vf_test1)
        film->set_interop (false);
        shared_ptr<DCPContent> dcp (new DCPContent ("test/data/reels_test2"));
        film->examine_and_add_content (dcp);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Multi-reel DCP can't be referenced if we are using a single reel for the project */
        film->set_reel_type (REELTYPE_SINGLE);
@@ -70,7 +70,7 @@ BOOST_AUTO_TEST_CASE (vf_test1)
 
        shared_ptr<FFmpegContent> other (new FFmpegContent("test/data/test.mp4"));
        film->examine_and_add_content (other);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Not possible if there is overlap */
        other->set_position (film, DCPTime());
@@ -97,13 +97,13 @@ BOOST_AUTO_TEST_CASE (vf_test2)
        ov->set_name ("vf_test2_ov");
        shared_ptr<Content> video = content_factory ("test/data/flat_red.png").front();
        ov->examine_and_add_content (video);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        video->video->set_length (24 * 5);
        shared_ptr<Content> audio = content_factory ("test/data/white.wav").front();
        ov->examine_and_add_content (audio);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        ov->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Make the VF */
        shared_ptr<Film> vf = new_test_film ("vf_test2_vf");
@@ -113,14 +113,14 @@ BOOST_AUTO_TEST_CASE (vf_test2)
        shared_ptr<DCPContent> dcp (new DCPContent(ov->dir (ov->dcp_name ())));
        BOOST_REQUIRE (dcp);
        vf->examine_and_add_content (dcp);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        dcp->set_reference_video (true);
        dcp->set_reference_audio (true);
        shared_ptr<Content> sub = content_factory("test/data/subrip4.srt").front();
        vf->examine_and_add_content (sub);
-       DCPOMATIC_ASSERT (!wait_for_jobs ());
+       BOOST_REQUIRE (!wait_for_jobs());
        vf->make_dcp ();
-       DCPOMATIC_ASSERT (!wait_for_jobs ());
+       BOOST_REQUIRE (!wait_for_jobs());
        vf->write_metadata ();
 
        dcp::DCP ov_c (ov->dir (ov->dcp_name ()));
@@ -155,13 +155,13 @@ BOOST_AUTO_TEST_CASE (vf_test3)
        ov->set_name ("vf_test3_ov");
        shared_ptr<Content> video = content_factory("test/data/flat_red.png").front();
        ov->examine_and_add_content (video);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        video->video->set_length (24 * 5);
        shared_ptr<Content> audio = content_factory("test/data/white.wav").front();
        ov->examine_and_add_content (audio);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        ov->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Make the VF */
        shared_ptr<Film> vf = new_test_film ("vf_test3_vf");
@@ -173,11 +173,11 @@ BOOST_AUTO_TEST_CASE (vf_test3)
        dcp->set_trim_start (ContentTime::from_seconds (1));
        dcp->set_trim_end (ContentTime::from_seconds (1));
        vf->examine_and_add_content (dcp);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        dcp->set_reference_video (true);
        dcp->set_reference_audio (true);
        vf->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        vf->write_metadata ();
 
        dcp::DCP vf_c (vf->dir (vf->dcp_name ()));
@@ -201,13 +201,13 @@ BOOST_AUTO_TEST_CASE (vf_test4)
        ov->set_name ("vf_test4_ov");
        shared_ptr<Content> video = content_factory("test/data/flat_red.png").front();
        ov->examine_and_add_content (video);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        video->video->set_length (24 * 5);
        shared_ptr<Content> audio = content_factory("test/data/white.wav").front();
        ov->examine_and_add_content (audio);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        ov->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        /* Make the VF */
        shared_ptr<Film> vf = new_test_film ("vf_test4_vf");
@@ -218,17 +218,17 @@ BOOST_AUTO_TEST_CASE (vf_test4)
        shared_ptr<DCPContent> dcp (new DCPContent(ov->dir(ov->dcp_name())));
        BOOST_REQUIRE (dcp);
        vf->examine_and_add_content (dcp);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        dcp->set_position(vf, DCPTime::from_seconds(10));
        dcp->set_reference_video (true);
        dcp->set_reference_audio (true);
        shared_ptr<Content> more_video = content_factory("test/data/flat_red.png").front();
        vf->examine_and_add_content (more_video);
-       DCPOMATIC_ASSERT (!wait_for_jobs ());
+       BOOST_REQUIRE (!wait_for_jobs());
        more_video->set_position (vf, DCPTime());
        vf->write_metadata ();
        vf->make_dcp ();
-       DCPOMATIC_ASSERT (!wait_for_jobs ());
+       BOOST_REQUIRE (!wait_for_jobs());
 
        dcp::DCP ov_c (ov->dir (ov->dcp_name ()));
        ov_c.read ();
index 5da7ad6..d2cb4ce 100644 (file)
@@ -54,9 +54,9 @@ BOOST_AUTO_TEST_CASE (video_mxf_content_test)
        shared_ptr<VideoMXFContent> check = dynamic_pointer_cast<VideoMXFContent> (content);
        BOOST_REQUIRE (check);
        film->examine_and_add_content (content);
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
        film->make_dcp ();
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        shared_ptr<dcp::MonoPictureAsset> ref (new dcp::MonoPictureAsset (ref_mxf));
        boost::filesystem::directory_iterator i ("build/test/video_mxf_content_test/video");