X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Finterrupt_encoder_test.cc;h=e146d2916f63f8f3931e4a1faeb5e7935e2b7ffd;hb=39fb8198febde1937019db1c300ec363aab5aa56;hp=8883c2d6f43e97c781d6e388875502bcfa3daf27;hpb=a8a0dfd1b21de6c0facf965ab119833ff6f790bf;p=dcpomatic.git diff --git a/test/interrupt_encoder_test.cc b/test/interrupt_encoder_test.cc index 8883c2d6f..e146d2916 100644 --- a/test/interrupt_encoder_test.cc +++ b/test/interrupt_encoder_test.cc @@ -18,6 +18,11 @@ */ +/** @file test/interrupt_encoder_test.cc + * @brief Test clean shutdown of threads if a DCP encode is interrupted. + * @ingroup feature + */ + #include "lib/film.h" #include "lib/dcp_content_type.h" #include "lib/ratio.h" @@ -28,7 +33,7 @@ #include "test.h" #include -using boost::shared_ptr; +using std::shared_ptr; /** Interrupt a DCP encode when it is in progress, as this used to (still does?) * sometimes give an error related to pthreads. @@ -40,13 +45,13 @@ BOOST_AUTO_TEST_CASE (interrupt_encoder_test) film->set_container (Ratio::from_id ("185")); film->set_name ("interrupt_encoder_test"); - shared_ptr content (new FFmpegContent (film, private_data / "prophet_clip.mkv")); + shared_ptr content (new FFmpegContent(TestPaths::private_data() / "prophet_long_clip.mkv")); film->examine_and_add_content (content); - wait_for_jobs (); + BOOST_REQUIRE (!wait_for_jobs()); film->make_dcp (); - dcpomatic_sleep (10); + dcpomatic_sleep_seconds (10); JobManager::drop (); }