X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fpulldown_detect_test.cc;h=432bdf26f86b61416971c04ef7b007a3b19bc4d6;hb=HEAD;hp=3c2df826c06c76a3f93533c5bd34f9b9b0f057e3;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/test/pulldown_detect_test.cc b/test/pulldown_detect_test.cc index 3c2df826c..432bdf26f 100644 --- a/test/pulldown_detect_test.cc +++ b/test/pulldown_detect_test.cc @@ -19,23 +19,19 @@ */ -#include "test.h" #include "lib/content.h" #include "lib/content_factory.h" #include "lib/film.h" +#include "test.h" #include -using std::shared_ptr; - - BOOST_AUTO_TEST_CASE (pulldown_detect_test1) { - shared_ptr film = new_test_film2 ("pulldown_detect_test1"); - shared_ptr content = content_factory(TestPaths::private_data() / "greatbrain.mkv").front(); - film->examine_and_add_content (content); - BOOST_REQUIRE (!wait_for_jobs()); - BOOST_REQUIRE (static_cast(content->video_frame_rate())); - BOOST_CHECK_CLOSE (content->video_frame_rate().get(), 23.976, 0.1); + auto content = content_factory(TestPaths::private_data() / "greatbrain.mkv"); + auto film = new_test_film2("pulldown_detect_test1", content); + + BOOST_REQUIRE(static_cast(content[0]->video_frame_rate())); + BOOST_CHECK_CLOSE(content[0]->video_frame_rate().get(), 23.976, 0.1); }