std::shared_ptr
[dcpomatic.git] / test / audio_processor_test.cc
index 9c790833ca904dcd33a7bb7b390dfa69b9286532..fcb81e104781e47e1c1db7f65077934a1f5196fe 100644 (file)
@@ -20,7 +20,7 @@
 
 /** @file  test/audio_processor_test.cc
  *  @brief Test audio processors.
- *  @ingroup specific
+ *  @ingroup feature
  */
 
 #include "lib/audio_processor.h"
@@ -32,7 +32,7 @@
 #include "test.h"
 #include <boost/test/unit_test.hpp>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 /** Test the mid-side decoder for analysis and DCP-making */
 BOOST_AUTO_TEST_CASE (audio_processor_test)
@@ -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 ()));
 }