From 1db64a2035fc8779ac206958f01d71acc8017c28 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 20 Jun 2013 08:25:16 +0000 Subject: [PATCH] * benchmark/gc/gcbench.rb: don't use __dir__ to make compatible with ruby 1.9.3. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ benchmark/gc/gcbench.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e321afd334..d3b5913fa7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 20 17:24:24 2013 Koichi Sasada + + * benchmark/gc/gcbench.rb: don't use __dir__ to make compatible + with ruby 1.9.3. + Thu Jun 20 16:57:19 2013 Koichi Sasada * benchmark/bm_app_aobench.rb: use attr_accessor/reader instead of diff --git a/benchmark/gc/gcbench.rb b/benchmark/gc/gcbench.rb index 5fee2a2bce..dc1c5e2ded 100644 --- a/benchmark/gc/gcbench.rb +++ b/benchmark/gc/gcbench.rb @@ -2,7 +2,7 @@ require 'benchmark' require 'pp' -script = File.join(__dir__, ARGV.shift) +script = File.join(File.dirname(__FILE__), ARGV.shift) script += '.rb' unless FileTest.exist?(script) raise "#{script} not found" unless FileTest.exist?(script)