diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-29 14:21:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-29 14:21:05 +0000 |
commit | 78e436671a547bbee709af33662d6824586b5560 (patch) | |
tree | 99a24c381277802b3bdb4bc688c9a39594a14924 /test | |
parent | 4e1ea795aa8ee15366b12ba806ff6846d9f871b2 (diff) | |
download | ruby-78e436671a547bbee709af33662d6824586b5560.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |