summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-19 14:45:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-19 14:45:49 +0000
commitd3ba99c15f6e787957c24dedd8796b68e60739c2 (patch)
tree78cdad72b6f89bba1f907a3dd3194aefc4611105 /test
parent9272ca4d2b181842b7d322fe90a38bd5d2974cb8 (diff)
* test/ruby/envutil.rb (EnvUtil::rubybin): give priority to
environment variable. [ruby-dev:23538] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/envutil.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb
index 38dba96c931..09c8e3f7f4a 100644
--- a/test/ruby/envutil.rb
+++ b/test/ruby/envutil.rb
@@ -1,5 +1,8 @@
module EnvUtil
def rubybin
+ if ruby = ENV["RUBY"]
+ return ruby
+ end
miniruby = "miniruby"
3.times do
if File.exist? miniruby or File.exist? miniruby+".exe"
@@ -9,7 +12,6 @@ module EnvUtil
end
begin
require "rbconfig"
- ENV["RUBY"] or
File.join(
Config::CONFIG["bindir"],
Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"]