summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r--test/ruby/test_process.rb4
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