Skip to content

Commit

Permalink
Merge pull request rock-core#207 from rock-core/minitest_set_cpucount…
Browse files Browse the repository at this point in the history
…_to_1

fix: temporarily disable thread allocation in minitest
  • Loading branch information
doudou authored Jun 9, 2022
2 parents ffcd8f1 + d8cd1ae commit 6b37ccc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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\./)
Expand Down

0 comments on commit 6b37ccc

Please sign in to comment.