Rename DEVELOPMENT -> DEVELOP.md and add some stuff about player stress testing.
[dcpomatic.git] / test / scaling_test.cc
index 5ac5c7525cbb581704bd024439c00d6eea6a4172..93c994741f50e4926993ed8e4b2c7fe84396ea35 100644 (file)
@@ -20,6 +20,7 @@
 
 /** @file test/scaling_test.cc
  *  @brief Test scaling and black-padding of images from a still-image source.
+ *  @ingroup specific
  */
 
 #include <boost/test/unit_test.hpp>
@@ -37,9 +38,10 @@ static void scaling_test_for (shared_ptr<Film> film, shared_ptr<Content> content
 {
        content->video->set_scale (VideoContentScale (Ratio::from_id (image)));
        film->set_container (Ratio::from_id (container));
+       film->set_interop (false);
        film->make_dcp ();
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        boost::filesystem::path ref;
        ref = "test";
@@ -60,11 +62,11 @@ BOOST_AUTO_TEST_CASE (scaling_test)
        shared_ptr<Film> film = new_test_film ("scaling_test");
        film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR"));
        film->set_name ("scaling_test");
-       shared_ptr<ImageContent> imc (new ImageContent (film, "test/data/simple_testcard_640x480.png"));
+       shared_ptr<ImageContent> imc (new ImageContent("test/data/simple_testcard_640x480.png"));
 
        film->examine_and_add_content (imc);
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs());
 
        imc->video->set_length (1);