diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-09 02:26:31 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-09 02:26:31 +0000 |
commit | 6199181b092e98bffe52452b12ce28e32cddd523 (patch) | |
tree | 3743651ddf19cc374f1ff90a691351d9ebcb61e7 /test/ruby | |
parent | dcea3a0fb26ea7a1837ba456eca6fa1ef0047a17 (diff) | |
download | ruby-6199181b092e98bffe52452b12ce28e32cddd523.tar.gz |
Catch NoMemoryError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index c68b6008fe..6630cf048b 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1237,14 +1237,14 @@ class TestProcess < Test::Unit::TestCase 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 |