mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 02:53:57 +02:00
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:
parent
75bed271f0
commit
395d7bb346
1 changed files with 3 additions and 1 deletions
|
@ -1381,8 +1381,10 @@ class TestProcess < Test::Unit::TestCase
|
||||||
bug4314 = '[ruby-core:34842]'
|
bug4314 = '[ruby-core:34842]'
|
||||||
exs = [Errno::ENOENT]
|
exs = [Errno::ENOENT]
|
||||||
exs << Errno::E2BIG if defined?(Errno::E2BIG)
|
exs << Errno::E2BIG if defined?(Errno::E2BIG)
|
||||||
|
EnvUtil.suppress_warning do
|
||||||
assert_raise(*exs, bug4314) {Process.spawn("a" * 10_000_000)}
|
assert_raise(*exs, bug4314) {Process.spawn("a" * 10_000_000)}
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_too_long_path2
|
def test_too_long_path2
|
||||||
bug4315 = '[ruby-core:34833]'
|
bug4315 = '[ruby-core:34833]'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue