ruby-changes:26294
From: naruse <ko1@a...>
Date: Wed, 12 Dec 2012 19:07:04 +0900 (JST)
Subject: [ruby-changes:26294] naruse:r38345 (trunk): Suppress warning: too long path
naruse 2012-12-12 19:06:29 +0900 (Wed, 12 Dec 2012) New Revision: 38345 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38345 Log: Suppress warning: too long path Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 38344) +++ test/ruby/test_process.rb (revision 38345) @@ -1381,7 +1381,9 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1381 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/