summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
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