Run one test with fewer cores to stop it running out of memory on a 16-core 16Gb...
authorCarl Hetherington <cth@carlh.net>
Wed, 3 Nov 2021 10:27:14 +0000 (11:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 Nov 2021 10:46:09 +0000 (11:46 +0100)
test/threed_test.cc

index f98464fb5810329d20a6a6903ed2b175bc4fb9b6..0c8632251a12743cb482ad51fb2d2220955d9eef 100644 (file)
@@ -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<FFmpegContent>(TestPaths::private_data() / "LEFT_TEST_DCP3D4K.mov");
        film->examine_and_add_content (L);