mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_process.rb (test_popen_shell): test for [ruby-core:22960].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c9cc612c09
commit
1e94f2f4f6
1 changed files with 7 additions and 0 deletions
|
@ -868,6 +868,13 @@ class TestProcess < Test::Unit::TestCase
|
||||||
assert(!status.success?)
|
assert(!status.success?)
|
||||||
assert_match(/\Atako pid=\d+ ppid=\d+\ntika pid=\d+ ppid=\d+\n\z/, result)
|
assert_match(/\Atako pid=\d+ ppid=\d+\ntika pid=\d+ ppid=\d+\n\z/, result)
|
||||||
assert_not_equal(result[/\d+/].to_i, status.pid)
|
assert_not_equal(result[/\d+/].to_i, status.pid)
|
||||||
|
|
||||||
|
if /mswin|bccwin|mingw/ =~ RUBY_PLATFORM
|
||||||
|
Dir.mkdir(path = "path with space")
|
||||||
|
write_file(bat = path + "/battest.bat", "@echo %1")
|
||||||
|
r = IO.popen([bat, "foo 'bar'"]) {|f| f.read}
|
||||||
|
assert_equal(%["foo 'bar'"\n], r, '[ruby-core:22960]')
|
||||||
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue