X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Finterrupt_encoder_test.cc;h=c6145d861908fcb60c63a9e4930e8a011b00f998;hb=3f9b394d57e750624d361f5daae6db77079f862a;hp=8883c2d6f43e97c781d6e388875502bcfa3daf27;hpb=876369d704d2f536906a7e26ef80927ba97ebd0c;p=dcpomatic.git diff --git a/test/interrupt_encoder_test.cc b/test/interrupt_encoder_test.cc index 8883c2d6f..c6145d861 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 specific + */ + #include "lib/film.h" #include "lib/dcp_content_type.h" #include "lib/ratio.h" @@ -40,9 +45,9 @@ 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(private_data / "prophet_long_clip.mkv")); film->examine_and_add_content (content); - wait_for_jobs (); + BOOST_REQUIRE (!wait_for_jobs()); film->make_dcp ();