summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-21 23:32:36 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-21 23:32:36 (GMT)
commit5072f03741087c869b2ded0c29349e9f3a361891 (patch)
tree2bddfdc258441292ef365a09202971cd0635563c
parent6f91160fa9413e501239ab883dacc5064d0a2661 (diff)
test/ruby/test_thread.rb: reduce thread count to avoid SIGKILL
Perhaps this error report is down to resource limits on a VM: http://rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20181221T230003Z.fail.html.gz But rb_mutex_t.fork_gen is still redundant, I think. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_thread.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index c3ebaf3..cf8ae2d 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|