mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fixed an unit test to work on Cygwin.
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user