1
0
Fork 0
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:
nobu 2013-06-20 04:08:47 +00:00
parent 05dd6b194c
commit d6f6f21816

View file

@ -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