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

ruby-changes:40276

From: usa <ko1@a...>
Date: Thu, 29 Oct 2015 23:21:19 +0900 (JST)
Subject: [ruby-changes:40276] usa:r52357 (trunk): * test/ruby/test_io.rb (ruby): check the existence of the constant instead of

usa	2015-10-29 23:21:05 +0900 (Thu, 29 Oct 2015)

  New Revision: 52357

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

  Log:
    * test/ruby/test_io.rb (ruby): check the existence of the constant instead of
      checking platform.  see also r52277.

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 52356)
+++ test/ruby/test_io.rb	(revision 52357)
@@ -1081,7 +1081,7 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1081
     args = ['-e', '$>.write($<.read)'] if args.empty?
     ruby = EnvUtil.rubybin
     opts = {}
-    opts[:rlimit_nproc] = 1024 if /mswin|mingw/ =~ RUBY_PLATFORM
+    opts[:rlimit_nproc] = 1024 if defined?(Process::RLIMIT_NPROC)
     f = IO.popen([ruby] + args, 'r+', opts)
     pid = f.pid
     yield(f)

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

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