[前][次][番号順一覧][スレッド一覧]

ruby-changes:49483

From: mame <ko1@a...>
Date: Thu, 4 Jan 2018 21:56:54 +0900 (JST)
Subject: [ruby-changes:49483] mame:r61598 (trunk): test/ruby/test_io.rb: relax RLIMIT_NPROC for invocation of ruby

mame	2018-01-04 21:56:49 +0900 (Thu, 04 Jan 2018)

  New Revision: 61598

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61598

  Log:
    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<main>: warning: pthread_create failed for
    timer: Resource temporarily unavailable, scheduling broken
    ```

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 61597)
+++ test/ruby/test_io.rb	(revision 61598)
@@ -1195,7 +1195,7 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1195
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]