ruby-changes:49511
From: naruse <ko1@a...>
Date: Sat, 6 Jan 2018 05:36:52 +0900 (JST)
Subject: [ruby-changes:49511] naruse:r61626 (trunk): Show how many seconds it timeouts
naruse 2018-01-06 05:36:46 +0900 (Sat, 06 Jan 2018) New Revision: 61626 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61626 Log: Show how many seconds it timeouts By this we can easily extend timeout. Modified files: trunk/test/lib/envutil.rb Index: test/lib/envutil.rb =================================================================== --- test/lib/envutil.rb (revision 61625) +++ test/lib/envutil.rb (revision 61626) @@ -147,7 +147,7 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L147 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/