diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-03 11:27:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-04 11:46:09 +0100 |
| commit | 74ee261046fbda4e902c6967312b3de7af6e869e (patch) | |
| tree | f3dc8b3e1c6c60852bbd04f6ba7e8259f5eea282 | |
| parent | e1555a8837da05f135a3705112469206fc17ec80 (diff) | |
Run one test with fewer cores to stop it running out of memory on a 16-core 16Gb machine.
| -rw-r--r-- | test/threed_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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<FFmpegContent>(TestPaths::private_data() / "LEFT_TEST_DCP3D4K.mov"); film->examine_and_add_content (L); |
