summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-06 21:27:13 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-09 01:40:48 +0100
commitd6a5354817613addf97b118b88ae8dfe7e20ae4a (patch)
tree803d393d54a474bd43d033ba2978d208968291f7
parent08aa3861e526cbf45ac332294a835358f3903207 (diff)
Use all cores when encoding in tests.
I think this also avoids the possibility of setting the master encoding thread count to 0 by mistake on machines that don't have many cores.
-rw-r--r--test/test.cc2
-rw-r--r--test/threed_test.cc3
2 files changed, 1 insertions, 4 deletions
diff --git a/test/test.cc b/test/test.cc
index 11b2c54b7..fe0286799 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -117,7 +117,7 @@ boost::filesystem::path TestPaths::xsd ()
static void
setup_test_config ()
{
- Config::instance()->set_master_encoding_threads (boost::thread::hardware_concurrency() / 2);
+ Config::instance()->set_master_encoding_threads(boost::thread::hardware_concurrency());
Config::instance()->set_server_encoding_threads (1);
Config::instance()->set_server_port_base (61921);
Config::instance()->set_default_audio_delay (0);
diff --git a/test/threed_test.cc b/test/threed_test.cc
index 13bdf3fa0..27dd12cbe 100644
--- a/test/threed_test.cc
+++ b/test/threed_test.cc
@@ -106,9 +106,6 @@ 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_film("threed_test4");
auto L = make_shared<FFmpegContent>(TestPaths::private_data() / "LEFT_TEST_DCP3D4K.mov");
film->examine_and_add_content (L);