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
@ -976,7 +976,11 @@ assert_equal 'ok', %q{
|
|||||||
}, '[ruby-dev:31816], [ruby-dev:31817]'
|
}, '[ruby-dev:31816], [ruby-dev:31817]'
|
||||||
|
|
||||||
assert_normal_exit %q{
|
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
|
class C
|
||||||
attr "a" * (2*1024*1024)
|
attr "a" * (2*1024*1024)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user