summaryrefslogtreecommitdiff
path: root/benchmark/gc
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-20 08:25:16 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-20 08:25:16 (GMT)
commit1db64a2035fc8779ac206958f01d71acc8017c28 (patch)
treedf9cbe80a527bdd6df20b90a87d0632d33b9a76c /benchmark/gc
parent8fbffe61cc35433cef210ce25708fa535d2cc9bf (diff)
* 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
Diffstat (limited to 'benchmark/gc')
-rw-r--r--benchmark/gc/gcbench.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/gc/gcbench.rb b/benchmark/gc/gcbench.rb
index 5fee2a2..dc1c5e2 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)