Suppress warning: too long path

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-12-12 10:06:29 +00:00
parent 75bed271f0
commit 395d7bb346

View File

@ -1381,7 +1381,9 @@ class TestProcess < Test::Unit::TestCase
bug4314 = '[ruby-core:34842]'
exs = [Errno::ENOENT]
exs << Errno::E2BIG if defined?(Errno::E2BIG)
assert_raise(*exs, bug4314) {Process.spawn("a" * 10_000_000)}
EnvUtil.suppress_warning do
assert_raise(*exs, bug4314) {Process.spawn("a" * 10_000_000)}
end
end
def test_too_long_path2