1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2015-10-29 14:21:05 +00:00
parent 4e1ea795aa
commit 78e436671a

View file

@ -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)