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:
akr 2007-10-01 07:43:21 +00:00
parent adcd9f7ea1
commit 5838fff334
1 changed files with 5 additions and 1 deletions

View File

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