summaryrefslogtreecommitdiff
path: root/test/ruby/envutil.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-13 13:05:24 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-13 13:05:24 +0000
commit1184373d867f0e4792b3a6da11acfd2cf4c0b330 (patch)
treec93cdc524880d4142cfe48dcb194207d05a34263 /test/ruby/envutil.rb
parentb6f1c0e2846acbbc9d694b1207c778e1d6db63e3 (diff)
* string.c (str_new4): should not preserve FL_TAINT status in the
internal shared string. [ruby-dev:21601] * string.c (rb_str_new4): ditto. * eval.c: use EXIT_SUCCESS and EXIT_FAILURE for exit values. * process.c: ditto. [ruby-dev:38521] * lib/debug.rb (debug_command): should enter emacs mode when assigned any value to the environment variable "EMACS". On Meadow, (getenv "EMACS") is "meadow". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r--test/ruby/envutil.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb
index 3f0fed3ad5f..186fcae1e64 100644
--- a/test/ruby/envutil.rb
+++ b/test/ruby/envutil.rb
@@ -1,10 +1,13 @@
module EnvUtil
def rubybin
- if File.exist? "miniruby" or File.exist? "miniruby.exe"
- "./miniruby"
- else
- "ruby"
+ miniruby = "miniruby"
+ 3.times do
+ if File.exist? miniruby or File.exist? miniruby+".exe"
+ return File.expand_path(miniruby)
+ end
+ miniruby = "../"+miniruby
end
+ "ruby"
end
module_function :rubybin
end