diff options
Diffstat (limited to 'rubytest.rb')
-rw-r--r-- | rubytest.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rubytest.rb b/rubytest.rb index cf583c1dfb..3bf11b3ba5 100644 --- a/rubytest.rb +++ b/rubytest.rb @@ -1,11 +1,15 @@ #! ./miniruby -I. +x = ENV["LD_LIBRARY_PATH"] +x = x ? x+":." : "." +ENV["LD_LIBRARY_PATH"] = x + require 'rbconfig' include Config $stderr.reopen($stdout) error = '' -`./ruby #{CONFIG["srcdir"]}/sample/test.rb`.each do |line| +`./#{CONFIG["ruby_install_name"]} #{CONFIG["srcdir"]}/sample/test.rb`.each do |line| if line =~ /^end of test/ print "test succeeded\n" exit 0 |