diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-20 23:52:43 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-20 23:52:43 +0000 |
| commit | 9dbb6129c1d50cfbeca9b5d20903fb0d91d056b1 (patch) | |
| tree | a3c747cbb5a78b3d2a758be3a6bc85169610d9b3 /test/ruby | |
| parent | 06401fa3631ca8213cf729f66c81533ba3957e30 (diff) | |
| download | ruby-9dbb6129c1d50cfbeca9b5d20903fb0d91d056b1.tar.gz ruby-9dbb6129c1d50cfbeca9b5d20903fb0d91d056b1.tar.xz ruby-9dbb6129c1d50cfbeca9b5d20903fb0d91d056b1.zip | |
* test/ruby/test_process.rb (test_popen_shell): test for [ruby-core:22960].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_process.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index df06d26e5..57084f6f8 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -868,6 +868,13 @@ class TestProcess < Test::Unit::TestCase assert(!status.success?) assert_match(/\Atako pid=\d+ ppid=\d+\ntika pid=\d+ ppid=\d+\n\z/, result) 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 |
