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