summaryrefslogtreecommitdiffstats
path: root/rubytest.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rubytest.rb')
-rw-r--r--rubytest.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/rubytest.rb b/rubytest.rb
index 6f717a2b6..d664bcf3a 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