ruby-changes:2094
From: ko1@a...
Date: 1 Oct 2007 16:43:28 +0900
Subject: [ruby-changes:2094] akr - Ruby:r13585 (trunk): check exception on Process.setrlimit.
akr 2007-10-01 16:43:21 +0900 (Mon, 01 Oct 2007) New Revision: 13585 Modified files: trunk/bootstraptest/test_method.rb Log: check exception on Process.setrlimit. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_method.rb?r1=13585&r2=13584 Index: bootstraptest/test_method.rb =================================================================== --- bootstraptest/test_method.rb (revision 13584) +++ bootstraptest/test_method.rb (revision 13585) @@ -976,7 +976,11 @@ }, '[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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml