diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-11-02 13:34:02 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-11-02 13:34:02 -0400 |
commit | b777408c33b57077f8be09eaed9245eeca0b59c5 (patch) | |
tree | 5a542125dae04f8fee61ad5908f9a643e7639705 /numeric.rb | |
parent | 81e84e0a4d348309d5d38311d283d049ffeeb7a2 (diff) | |
download | ruby-b777408c33b57077f8be09eaed9245eeca0b59c5.tar.gz |
Fix crash in test runner on timeout
When a test worker hangs and timeouts, the test runner crashes with the
following stack trace:
ruby/tool/lib/test/unit.rb:1747:in `puke': undefined method `backtrace' for Timeout::Error:Class (NoMethodError)
from ruby/tool/lib/test/unit.rb:790:in `block in _run_parallel'
from ruby/tool/lib/test/unit.rb:788:in `each'
This commit adds handling for Timeout::Error and outputs a message.
Diffstat (limited to 'numeric.rb')
0 files changed, 0 insertions, 0 deletions