From 006e8d2e71375e5a9554115bc5771447bc44ec27 Mon Sep 17 00:00:00 2001 From: eban Date: Thu, 18 Mar 2004 10:49:20 +0000 Subject: * instruby.rb, rubytest.rb: do not depend on srcdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rubytest.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rubytest.rb') diff --git a/rubytest.rb b/rubytest.rb index 6f717a2b60..d664bcf3ae 100644 --- a/rubytest.rb +++ b/rubytest.rb @@ -34,7 +34,8 @@ end $stderr.reopen($stdout) error = '' -`./#{CONFIG["ruby_install_name"]}#{CONFIG["EXEEXT"]} -I#{CONFIG["srcdir"]}/lib #{CONFIG["srcdir"]}/sample/test.rb`.each do |line| +srcdir = File.dirname(__FILE__) +`./#{CONFIG["ruby_install_name"]}#{CONFIG["EXEEXT"]} -I#{srcdir}/lib #{srcdir}/sample/test.rb`.each do |line| if line =~ /^end of test/ print "test succeeded\n" exit 0 -- cgit v1.2.3