diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-15 17:42:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-15 17:42:00 +0000 |
commit | 86888f9cecc30ebad241fd144bab6ff6380640ed (patch) | |
tree | 462e542417b6fa5c3ee9154ff6f53a5f6ad139ef /test/dtrace | |
parent | b2996b30d9e868f1d28d45849c26fbad65d2be2a (diff) |
rename ruby-runner as bin/ruby
* Makefile.in, configure.in, tool/runruby.rb: rename ruby-runner
executable file as $(RUBY_INSTALL_NAME) under bin, to mimic
dirty `#!/usr/bin/env` hack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dtrace')
-rw-r--r-- | test/dtrace/helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dtrace/helper.rb b/test/dtrace/helper.rb index 539cce9d6f..5828bcd5ba 100644 --- a/test/dtrace/helper.rb +++ b/test/dtrace/helper.rb @@ -46,8 +46,8 @@ module DTrace IO.popen(cmd, err: [:child, :out], &:readlines) end - exeext = Regexp.quote(RbConfig::CONFIG["EXEEXT"]) - RUBYBIN = EnvUtil.rubybin.sub(/\/ruby-runner(?=#{exeext}\z)/, '/miniruby') + miniruby = "#{RbConfig::TOPDIR}/miniruby#{RbConfig::CONFIG["EXEEXT"]}" + RUBYBIN = File.exist?(miniruby) ? miniruby : EnvUtil.rubybin def trap_probe d_program, ruby_program d = Tempfile.new(%w'probe .d') |