summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-11-19 12:41:53 +0900
committerGitHub <[email protected]>2020-11-19 12:41:53 +0900
commit5dc9a8249fc92de089627cad17b5d5b7a5f0a505 (patch)
treedc9555faa744e85c9ab22a22aae2aee51c3c1af1 /test
parent15d6e172e939b339dec74524ea2dd9e3794e84d8 (diff)
parentfd113da3aab05c90d14b450b0b20e7c42c00ff6e (diff)
downloadmruby-5dc9a8249fc92de089627cad17b5d5b7a5f0a505.tar.gz
mruby-5dc9a8249fc92de089627cad17b5d5b7a5f0a505.zip
Merge pull request #5150 from shuujii/allow-bintest-even-if-build-name-is-not-host
Allow `bintest` even if build name is not `host`
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)