From d8cd1aeb0ba5fecf151e13c66459dc196289a56a Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 8 Jun 2022 22:01:28 -0300 Subject: [PATCH] fix: temporarily disable thread allocation in minitest This workarounds a change in minitest 1.15 that triggered a weird bug, causing ruby tests to fail with 'cannot create Thread: reosource temporarily unavailable' This seem to be only triggered when tests are run under autoproj (the weird part) --- init.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.rb b/init.rb index 96126abe..b24de781 100644 --- a/init.rb +++ b/init.rb @@ -12,6 +12,12 @@ # Ignore the numerous backup files ignore(/~$/) +## Workaround a change in minitest 1.15 that triggered a weird bug, causing ruby +## tests to fail with cannot create Thread: reosource temporarily unavailable +## +## This seem to be only triggered when tests are run under autoproj (the weird part) +Autoproj.env_set "MT_CPU", "1" + # Ruby 1.8 is completly outdated, if you modify this, take respect to the addition checks below against 1.9 if defined?(RUBY_VERSION) && (RUBY_VERSION =~ /^1\.8\./)