From 6c9e95df88d124a5fd0e7c996ce10b47471ee39d Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 5 Nov 2010 03:23:10 +0000 Subject: * test/ruby/test_{process,system}.rb (test_fallback_to_sh): meaningless and wrong tests where /bin/sh does not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 2 +- test/ruby/test_system.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 4e16400582..3ea636b329 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1233,5 +1233,5 @@ class TestProcess < Test::Unit::TestCase 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 diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index 2a5107f70c..45377da063 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -101,5 +101,5 @@ class TestSystem < Test::Unit::TestCase } assert_equal(true, system(tmpfilename), '[ruby-core:32745]') } - end + end if File.executable?("/bin/sh") end -- cgit v1.2.3