summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/bintest.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/bintest.rb b/test/bintest.rb
index ed71e57fd..4a3f161ba 100644
--- a/test/bintest.rb
+++ b/test/bintest.rb
@@ -4,12 +4,11 @@ require 'test/assert.rb'
GEMNAME = ""
def cmd(s)
- case RbConfig::CONFIG['host_os']
- when /mswin(?!ce)|mingw|bccwin/
- "bin\\#{s}.exe"
- else
- "bin/#{s}"
+ path = "#{ENV['BUILD_DIR']}/bin/#{s}"
+ if /mswin(?!ce)|mingw|bccwin/ =~ RbConfig::CONFIG['host_os']
+ path = "#{path}.exe".tr("/", "\\")
end
+ path
end
def shellquote(s)