[前][次][番号順一覧][スレッド一覧]

ruby-changes:27323

From: nobu <ko1@a...>
Date: Fri, 22 Feb 2013 12:00:45 +0900 (JST)
Subject: [ruby-changes:27323] nobu:r39375 (trunk): test_process.rb: fix parameters

nobu	2013-02-22 11:58:53 +0900 (Fri, 22 Feb 2013)

  New Revision: 39375

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39375

  Log:
    test_process.rb: fix parameters
    
    * test/ruby/test_process.rb (test_{,a}spawn_too_long_path): fix
      missing parameters in r38934.

  Modified files:
    trunk/test/ruby/test_process.rb

Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 39374)
+++ test/ruby/test_process.rb	(revision 39375)
@@ -1380,15 +1380,15 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1380
 
   def test_spawn_too_long_path
     bug4314 = '[ruby-core:34842]'
-    assert_fail_too_long_path(bug4314)
+    assert_fail_too_long_path("a", bug4314)
   end
 
   def test_aspawn_too_long_path
     bug4315 = '[ruby-core:34833]'
-    assert_fail_too_long_path(bug4315)
+    assert_fail_too_long_path("a|", bug4315)
   end
 
-  def assert_fail_too_long_path(cmd, mesg = nil)
+  def assert_fail_too_long_path(cmd, mesg)
     size = 1_000_000 / cmd.size
     exs = [Errno::ENOENT]
     exs << Errno::E2BIG if defined?(Errno::E2BIG)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]