X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Faudio_processor_test.cc;h=4e917bd45bbad300c84e8bfcec3ee2bf0ec4b18f;hp=de212f611352abf7ba51de08d1ed8a1f9fe08231;hb=8fcd1dc3bdec69d4aa7bc76926993733952a10be;hpb=9d4906db6e143248cf1e814d539aa2c7a50721dc diff --git a/test/audio_processor_test.cc b/test/audio_processor_test.cc index de212f611..4e917bd45 100644 --- a/test/audio_processor_test.cc +++ b/test/audio_processor_test.cc @@ -39,9 +39,9 @@ BOOST_AUTO_TEST_CASE (audio_processor_test) { shared_ptr film = new_test_film ("audio_processor_test"); film->set_name ("audio_processor_test"); - shared_ptr c (new FFmpegContent (film, "test/data/white.wav")); + shared_ptr 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 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 ())); }