ruby-changes:26373
From: naruse <ko1@a...>
Date: Mon, 17 Dec 2012 21:48:28 +0900 (JST)
Subject: [ruby-changes:26373] naruse:r38424 (trunk): Use EnvUtil.rubybin instead of Gem.ruby
naruse 2012-12-17 21:48:12 +0900 (Mon, 17 Dec 2012) New Revision: 38424 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38424 Log: Use EnvUtil.rubybin instead of Gem.ruby [ruby-core:50943] [Bug #7581] Modified files: trunk/test/dtrace/helper.rb Index: test/dtrace/helper.rb =================================================================== --- test/dtrace/helper.rb (revision 38423) +++ test/dtrace/helper.rb (revision 38424) @@ -1,6 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/test/dtrace/helper.rb#L1 # -*- coding: us-ascii -*- require 'minitest/autorun' require 'tempfile' +require_relative '../ruby/envutil' if Process.euid == 0 ok = true @@ -26,7 +27,7 @@ module DTrace https://github.com/ruby/ruby/blob/trunk/test/dtrace/helper.rb#L27 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/