diff options
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r-- | test/ruby/test_thread.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index c3ebaf34d5..cf8ae2d69c 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -1247,6 +1247,7 @@ q.pop run = true errs = '' nr = 50 + nr /= 2 if Process.getrlimit(:NPROC)[0] <= 4096 # Bug 15430 tmps = nr.times.map { Tempfile.new('Bug.15430.diagnosis') } thrs = nr.times.map do |_i| Thread.new(_i) do |i| |