mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* 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
This commit is contained in:
parent
c223709c3b
commit
006e8d2e71
3 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue