зеркало из https://github.com/github/ruby.git
Use EnvUtil.rubybin instead of Gem.ruby
[ruby-core:50943] [Bug #7581] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a70bb8889b
Коммит
8dcc5ec888
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: us-ascii -*-
|
||||
require 'minitest/autorun'
|
||||
require 'tempfile'
|
||||
require_relative '../ruby/envutil'
|
||||
|
||||
if Process.euid == 0
|
||||
ok = true
|
||||
|
@ -26,7 +27,7 @@ module DTrace
|
|||
d_path = d.path
|
||||
rb_path = rb.path
|
||||
|
||||
cmd = ["dtrace", "-q", "-s", d_path, "-c", "#{Gem.ruby} -I#{INCLUDE} #{rb_path}"]
|
||||
cmd = ["dtrace", "-q", "-s", d_path, "-c", "#{EnvUtil.rubybin} -I#{INCLUDE} #{rb_path}"]
|
||||
sudo = ENV["SUDO"] and cmd.unshift(sudo)
|
||||
probes = IO.popen(cmd) do |io|
|
||||
io.readlines
|
||||
|
|
Загрузка…
Ссылка в новой задаче