From 08599266b00bc1a85e9351b3f290b6bcc632bd18 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 29 Oct 2015 14:21:05 +0000 Subject: * test/ruby/test_io.rb (ruby): check the existence of the constant instead of checking platform. see also r52277. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 133a1a34a1..634a1731be 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1081,7 +1081,7 @@ class TestIO < Test::Unit::TestCase 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) -- cgit v1.2.3