diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_process.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_system.rb | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,7 @@ -Fri Nov 5 12:17:59 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> +Fri Nov 5 12:23:01 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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. 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 |