summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-09 06:29:36 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-09 06:29:36 +0000
commitcf8626a0826ab96430f4819c17c78dc11bd108e1 (patch)
tree7a192ae8e6e648981ada9d9804df4ccc14c4c9c9 /test
parent6199181b092e98bffe52452b12ce28e32cddd523 (diff)
Run GC.start before test_too_long_path.
NoMemoryError is raised in MiniTest#exception_details where exception is made, and no effect. Run GC.start before running to keep the room. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_process.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 6630cf048b..49c0fa143d 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1236,15 +1236,17 @@ class TestProcess < Test::Unit::TestCase
end if File.executable?("/bin/sh")
def test_too_long_path
+ GC.start
bug4314 = '[ruby-core:34842]'
- exs = [NoMemoryError, Errno::ENOENT]
+ exs = [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
+ GC.start
bug4315 = '[ruby-core:34833]'
- exs = [NoMemoryError, Errno::ENOENT]
+ exs = [Errno::ENOENT]
exs << Errno::E2BIG if defined?(Errno::E2BIG)
assert_raise(*exs, bug4315) {Process.spawn('"a"|'*10_000_000)}
end