Temporarily increase local encoding thread count during digest test.
authorCarl Hetherington <cth@carlh.net>
Wed, 27 Jul 2016 12:15:23 +0000 (13:15 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 27 Jul 2016 12:16:26 +0000 (13:16 +0100)
test/digest_test.cc

index f7480132e58660e543c161e609305dbd97496152..664f5bd2022080d94e168623d5e57bef3644da1a 100644 (file)
@@ -22,6 +22,7 @@
 #include "lib/image_content.h"
 #include "lib/dcp_content_type.h"
 #include "lib/compose.hpp"
+#include "lib/config.h"
 #include "test.h"
 #include <dcp/cpl.h>
 #include <dcp/reel.h>
@@ -66,8 +67,10 @@ BOOST_AUTO_TEST_CASE (digest_test)
        film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
        wait_for_jobs ();
 
+       Config::instance()->set_num_local_encoding_threads (4);
        film->make_dcp ();
        wait_for_jobs ();
+       Config::instance()->set_num_local_encoding_threads (1);
 
        dcp::DCP dcp (film->dir (film->dcp_name ()));
        dcp.read ();