diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 01:28:14 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 01:28:14 +0000 |
commit | 9c9b619799aea31eb2505749386ed3a530246bbb (patch) | |
tree | f368415e3e807ea06ead4b854f2428e0995e1186 /bootstraptest/runner.rb | |
parent | 96110732f155a53d0e7e37a7975746d76ac10ba7 (diff) | |
download | ruby-9c9b619799aea31eb2505749386ed3a530246bbb.tar.gz |
* bootstraptest/runner.rb: add lib/ to load path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/runner.rb')
-rw-r--r-- | bootstraptest/runner.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 6ad37d7afd..8fc3bc2e08 100644 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -1,10 +1,11 @@ -# $Id: $ +# $Id$ # NOTE: # Never use optparse in this file. # Never use test/unit in this file. # Never use Ruby extensions in this file. +$LOAD_PATH.unshift "#{File.dirname($0)}/lib" require 'fileutils' def main @@ -116,9 +117,7 @@ end def cleanup_coredump FileUtils.rm_f 'core' - Dir.glob('core.*').each do |ent| - FileUtils.rm_f ent - end + FileUtils.rm_f Dir.glob('core.*') end class CoreDumpError < StandardError; end |