mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
envutil.rb: refine message
* test/ruby/envutil.rb (invoke_ruby): refine message and skip innermost backtrace on timeout. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
05dd6b194c
commit
d6f6f21816
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ module EnvUtil
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue