diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-22 16:54:55 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-22 16:54:55 +0000 |
commit | 7b90b137556e0116675cfc5888a18595dc6e55ce (patch) | |
tree | d2aea6208a4e3b84f3ab1c9f82382bbc913d6527 /test/ruby/test_process.rb | |
parent | b5f2b5e1a20610e63c5b66f98e7ed01ff10c189a (diff) | |
download | ruby-7b90b137556e0116675cfc5888a18595dc6e55ce.tar.gz |
Add rlimit_nproc to avoid to create many process [Bug #11613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 32dcaed144..7345cc3b3c 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1586,7 +1586,7 @@ class TestProcess < Test::Unit::TestCase end def test_aspawn_too_long_path - bug4315 = '[ruby-core:34833]' + bug4315 = '[ruby-core:34833] #7904 [ruby-core:52628] #11613' assert_fail_too_long_path(%w"echo |", bug4315) end @@ -1600,7 +1600,7 @@ class TestProcess < Test::Unit::TestCase assert_raise(*exs, mesg) do begin loop do - Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL) + Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL, rlimit_nproc: 1) min = [cmds.size, min].max cmds *= 100 end |