diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-18 10:49:20 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-18 10:49:20 +0000 |
commit | f0506f27e84fa535cce008d74ac0b6dff2456074 (patch) | |
tree | 5e97be4724c685c7b7dec065f48e493f60f75d81 /rubytest.rb | |
parent | 4b99a4791e058ecc2d1ca94b55cc7c606afa4db9 (diff) | |
download | ruby-f0506f27e84fa535cce008d74ac0b6dff2456074.tar.gz ruby-f0506f27e84fa535cce008d74ac0b6dff2456074.tar.xz ruby-f0506f27e84fa535cce008d74ac0b6dff2456074.zip |
* instruby.rb, rubytest.rb: do not depend on srcdir.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubytest.rb')
-rw-r--r-- | rubytest.rb | 3 |
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 |