Fixed an unit test to work on Cygwin.

This commit is contained in:
Hiroshi Mimaki
2017-07-03 16:01:01 +09:00
parent 0de7eec628
commit ba1cd56ffa
+3 -3
View File
@@ -3,7 +3,7 @@ require 'test/assert.rb'
def cmd(s)
case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/
when /mswin(?!ce)|mingw|bccwin/
"bin\\#{s}.exe"
else
"bin/#{s}"
@@ -12,7 +12,7 @@ end
def shellquote(s)
case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/
when /mswin(?!ce)|mingw|bccwin/
"\"#{s}\""
else
"'#{s}'"
@@ -21,7 +21,7 @@ end
ARGV.each do |gem|
case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/
when /mswin(?!ce)|mingw|bccwin/
gem = gem.gsub('\\', '/')
end