1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2010-11-05 03:23:10 +00:00
parent 1cf7194e0c
commit 6c9e95df88
3 changed files with 6 additions and 3 deletions

View file

@ -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.

View file

@ -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

View file

@ -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