mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
check exception on Process.setrlimit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
adcd9f7ea1
commit
5838fff334
1 changed files with 5 additions and 1 deletions
|
@ -976,7 +976,11 @@ assert_equal 'ok', %q{
|
|||
}, '[ruby-dev:31816], [ruby-dev:31817]'
|
||||
|
||||
assert_normal_exit %q{
|
||||
Process.setrlimit(Process::RLIMIT_STACK, 1024*1024)
|
||||
begin
|
||||
Process.setrlimit(Process::RLIMIT_STACK, 1024*1024)
|
||||
rescue Exception
|
||||
exit
|
||||
end
|
||||
class C
|
||||
attr "a" * (2*1024*1024)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue