summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-05 03:23:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-05 03:23:10 +0000
commit6c9e95df88d124a5fd0e7c996ce10b47471ee39d (patch)
tree516f9ccdd40bb82adbf2f9b1741f4ce60957b9a1 /test/ruby
parent1cf7194e0cda863a75318bfac66cc9e3acebf534 (diff)
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_process.rb2
-rw-r--r--test/ruby/test_system.rb2
2 files changed, 2 insertions, 2 deletions
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