From: Carl Hetherington Date: Wed, 3 Nov 2021 10:27:14 +0000 (+0100) Subject: Run one test with fewer cores to stop it running out of memory on a 16-core 16Gb... X-Git-Tag: checked-for-v2.16.x~197 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=ef16b231e15f9839951bd6e2ea8460e8743efe8d Run one test with fewer cores to stop it running out of memory on a 16-core 16Gb machine. --- diff --git a/test/threed_test.cc b/test/threed_test.cc index f98464fb5..0c8632251 100644 --- a/test/threed_test.cc +++ b/test/threed_test.cc @@ -105,6 +105,11 @@ BOOST_AUTO_TEST_CASE (threed_test3) BOOST_AUTO_TEST_CASE (threed_test4) { + ConfigRestorer cr; + + /* Try to stop out-of-memory crashes on my laptop */ + Config::instance()->set_master_encoding_threads (boost::thread::hardware_concurrency() / 4); + auto film = new_test_film2 ("threed_test4"); auto L = make_shared(TestPaths::private_data() / "LEFT_TEST_DCP3D4K.mov"); film->examine_and_add_content (L);