mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* benchmark/driver.rb: add path to trunk/lib if driver runner is
in build directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a5c4480732
commit
58b1f91b46
2 changed files with 21 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Nov 21 18:02:10 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* benchmark/driver.rb: add path to trunk/lib if driver runner is
|
||||
in build directory.
|
||||
|
||||
Wed Nov 21 16:39:21 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/fileutils/fileasserts.rb (assert_equal_timestamp): new assert
|
||||
|
|
|
@ -2,7 +2,22 @@
|
|||
# Ruby Benchmark driver
|
||||
#
|
||||
|
||||
require 'optparse'
|
||||
first = true
|
||||
|
||||
p RUBY_VERSION
|
||||
|
||||
begin
|
||||
require 'optparse'
|
||||
rescue LoadError
|
||||
if first
|
||||
first = false
|
||||
$:.unshift File.join(File.dirname(__FILE__), '../lib')
|
||||
retry
|
||||
else
|
||||
raise
|
||||
end
|
||||
end
|
||||
|
||||
require 'benchmark'
|
||||
require 'pp'
|
||||
|
||||
|
|
Loading…
Reference in a new issue