diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-01 07:43:21 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-01 07:43:21 +0000 |
commit | 75f42f8d134496760c86ac2af04ab8b4f2feb86a (patch) | |
tree | 19b669c6d1adddbc2842bb053c6a765df2dba903 /bootstraptest/test_method.rb | |
parent | cd6bf1aeb710cf54ee2414fa1ebd63707798940b (diff) | |
download | ruby-75f42f8d134496760c86ac2af04ab8b4f2feb86a.tar.gz ruby-75f42f8d134496760c86ac2af04ab8b4f2feb86a.tar.xz ruby-75f42f8d134496760c86ac2af04ab8b4f2feb86a.zip |
check exception on Process.setrlimit.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_method.rb')
-rw-r--r-- | bootstraptest/test_method.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb index 7b379b068..56bb1146a 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 |