From 112ee3aa4133f326ecd6307009ab7a19473b068a Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 5 Jan 2018 20:36:46 +0000 Subject: 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 --- test/lib/envutil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3