diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-20 04:08:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-20 04:08:47 +0000 |
commit | d6f6f21816a15b7355415869365feeb19676e7c0 (patch) | |
tree | 0b7c8fd2e414eca5c801ad6044369c057052aca9 | |
parent | 05dd6b194cc29961a7cecfd5c3852f06dd56a871 (diff) | |
download | ruby-d6f6f21816a15b7355415869365feeb19676e7c0.tar.gz |
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
-rw-r--r-- | test/ruby/envutil.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 4b6dd9a425..57d2d11f6b 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -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 |