summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 20:36:46 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 20:36:46 +0000
commit112ee3aa4133f326ecd6307009ab7a19473b068a (patch)
tree3be481e6a3c5c2cc8d500d0d369e5b72702eb23c /test/lib
parent64f0caac34833c98453bd267f6596c26f7d5bcd8 (diff)
Show how many seconds it timeouts
By this we can easily extend timeout. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/envutil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb
index fce0e1b382..5d3bce99ec 100644
--- a/test/lib/envutil.rb
+++ b/test/lib/envutil.rb
@@ -147,7 +147,7 @@ module EnvUtil
stderr = stderr_filter.call(stderr) if stderr_filter
if timeout_error
bt = caller_locations
- msg = "execution of #{bt.shift.label} expired"
+ msg = "execution of #{bt.shift.label} expired timeout (#{timeout} sec)"
msg = Test::Unit::Assertions::FailDesc[status, msg, [stdout, stderr].join("\n")].()
raise timeout_error, msg, bt.map(&:to_s)
end