diff options
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 2910ff8bd4..6512ef2dd7 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1597,7 +1597,7 @@ class TestProcess < Test::Unit::TestCase exs = [Errno::ENOENT] exs << Errno::E2BIG if defined?(Errno::E2BIG) opts = {[STDOUT, STDERR]=>File::NULL} - opts[:rlimit_nproc] = 128 if /mswin|mingw/ =~ RUBY_PLATFORM + opts[:rlimit_nproc] = 128 if defined?(Process::RLIMIT_NPROC) EnvUtil.suppress_warning do assert_raise(*exs, mesg) do begin |