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

ruby-changes:17689

From: nobu <ko1@a...>
Date: Fri, 5 Nov 2010 12:23:28 +0900 (JST)
Subject: [ruby-changes:17689] Ruby:r29698 (trunk): * test/ruby/test_{process,system}.rb (test_fallback_to_sh):

nobu	2010-11-05 12:23:10 +0900 (Fri, 05 Nov 2010)

  New Revision: 29698

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

  Log:
    * test/ruby/test_{process,system}.rb (test_fallback_to_sh):
      meaningless and wrong tests where /bin/sh does not exist.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29697)
+++ ChangeLog	(revision 29698)
@@ -1,5 +1,8 @@
-Fri Nov  5 12:17:59 2010  Nobuyoshi Nakada  <nobu@r...>
+Fri Nov  5 12:23:01 2010  Nobuyoshi Nakada  <nobu@r...>
 
+	* test/ruby/test_{process,system}.rb (test_fallback_to_sh):
+	  meaningless and wrong tests where /bin/sh does not exist.
+
 	* process.c (proc_spawn_v): should spawn, not exec.
 
 Fri Nov  5 01:21:31 2010  Nobuyoshi Nakada  <nobu@r...>
Index: test/ruby/test_system.rb
===================================================================
--- test/ruby/test_system.rb	(revision 29697)
+++ test/ruby/test_system.rb	(revision 29698)
@@ -101,5 +101,5 @@
       }
       assert_equal(true, system(tmpfilename), '[ruby-core:32745]')
     }
-  end
+  end if File.executable?("/bin/sh")
 end
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 29697)
+++ test/ruby/test_process.rb	(revision 29698)
@@ -1233,5 +1233,5 @@
       result = IO.popen(["./tmp_script.#{$$}", "a b", "c"]) {|f| f.read}
       assert_equal("2: a b c\n", result, feature)
     end
-  end
+  end if File.executable?("/bin/sh")
 end

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

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