From 5838fff3341e6b4ebca956a6a96659eb5afb9859 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 1 Oct 2007 07:43:21 +0000 Subject: check exception on Process.setrlimit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_method.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bootstraptest/test_method.rb') diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb index 7b379b068d..56bb1146ac 100644 --- a/bootstraptest/test_method.rb +++ b/bootstraptest/test_method.rb @@ -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 -- cgit v1.2.3