Commit ba1cd56f authored by Hiroshi Mimaki's avatar Hiroshi Mimaki

Fixed an unit test to work on Cygwin.

parent 0de7eec6
...@@ -3,7 +3,7 @@ require 'test/assert.rb' ...@@ -3,7 +3,7 @@ require 'test/assert.rb'
def cmd(s) def cmd(s)
case RbConfig::CONFIG['host_os'] case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/ when /mswin(?!ce)|mingw|bccwin/
"bin\\#{s}.exe" "bin\\#{s}.exe"
else else
"bin/#{s}" "bin/#{s}"
...@@ -12,7 +12,7 @@ end ...@@ -12,7 +12,7 @@ end
def shellquote(s) def shellquote(s)
case RbConfig::CONFIG['host_os'] case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/ when /mswin(?!ce)|mingw|bccwin/
"\"#{s}\"" "\"#{s}\""
else else
"'#{s}'" "'#{s}'"
...@@ -21,7 +21,7 @@ end ...@@ -21,7 +21,7 @@ end
ARGV.each do |gem| ARGV.each do |gem|
case RbConfig::CONFIG['host_os'] case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/ when /mswin(?!ce)|mingw|bccwin/
gem = gem.gsub('\\', '/') gem = gem.gsub('\\', '/')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment