ruby-changes:21185
From: naruse <ko1@a...>
Date: Fri, 9 Sep 2011 11:26:40 +0900 (JST)
Subject: [ruby-changes:21185] naruse:r33234 (trunk): Catch NoMemoryError.
naruse 2011-09-09 11:26:31 +0900 (Fri, 09 Sep 2011) New Revision: 33234 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33234 Log: Catch NoMemoryError. Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 33233) +++ test/ruby/test_process.rb (revision 33234) @@ -1237,14 +1237,14 @@ def test_too_long_path bug4314 = '[ruby-core:34842]' - exs = [Errno::ENOENT] + exs = [NoMemoryError, Errno::ENOENT] exs << Errno::E2BIG if defined?(Errno::E2BIG) assert_raise(*exs, bug4314) {Process.spawn("a" * 10_000_000)} end def test_too_long_path2 bug4315 = '[ruby-core:34833]' - exs = [Errno::ENOENT] + exs = [NoMemoryError, Errno::ENOENT] exs << Errno::E2BIG if defined?(Errno::E2BIG) assert_raise(*exs, bug4315) {Process.spawn('"a"|'*10_000_000)} end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/