ruby-changes:29415
From: nobu <ko1@a...>
Date: Thu, 20 Jun 2013 13:08:56 +0900 (JST)
Subject: [ruby-changes:29415] nobu:r41467 (trunk): envutil.rb: refine message
nobu 2013-06-20 13:08:47 +0900 (Thu, 20 Jun 2013) New Revision: 41467 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41467 Log: envutil.rb: refine message * test/ruby/envutil.rb (invoke_ruby): refine message and skip innermost backtrace on timeout. Modified files: trunk/test/ruby/envutil.rb Index: test/ruby/envutil.rb =================================================================== --- test/ruby/envutil.rb (revision 41466) +++ test/ruby/envutil.rb (revision 41467) @@ -77,7 +77,8 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L77 else break end while true - raise Timeout::Error + bt = caller_locations + raise Timeout::Error, "execution of #{bt.shift.label} expired", bt.map(&:to_s) end out_p.close if capture_stdout err_p.close if capture_stderr && capture_stderr != :merge_to_stdout -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/