From 0f806b4942e199de325489e322cab23c96ff8e6b Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 4 Jan 2018 12:56:49 +0000 Subject: test/ruby/test_io.rb: relax RLIMIT_NPROC for invocation of ruby This limit seems to be too restrict. It sometimes produces the following warning when running `make test-all`: ``` TestIO#test_close_on_exec
: warning: pthread_create failed for timer: Resource temporarily unavailable, scheduling broken ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index b95f837571..95c62874a6 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1195,7 +1195,7 @@ class TestIO < Test::Unit::TestCase opts = {} if defined?(Process::RLIMIT_NPROC) lim = Process.getrlimit(Process::RLIMIT_NPROC)[1] - opts[:rlimit_nproc] = [lim, 1024].min + opts[:rlimit_nproc] = [lim, 2048].min end f = IO.popen([ruby] + args, 'r+', opts) pid = f.pid -- cgit v1.2.3