@@ -366,15 +366,15 @@ function record_timeout!(testitem, run_number::Int, timeout_limit::Real)
366
366
end
367
367
end
368
368
msg = " Timed out after $time_str evaluating test item $(repr (testitem. name)) (run=$run_number )"
369
- record_test_error! (testitem, msg)
369
+ record_test_error! (testitem, msg, timeout_limit )
370
370
end
371
371
372
372
function record_worker_terminated! (testitem, run_number:: Int )
373
373
msg = " Worker aborted evaluating test item $(repr (testitem. name)) (run=$run_number )"
374
374
record_test_error! (testitem, msg)
375
375
end
376
376
377
- function record_test_error! (testitem, msg)
377
+ function record_test_error! (testitem, msg, elapsed_seconds :: Real = 0.0 )
378
378
Test. TESTSET_PRINT_ENABLE[] = false
379
379
ts = DefaultTestSet (testitem. name)
380
380
err = ErrorException (msg)
@@ -386,6 +386,9 @@ function record_test_error!(testitem, msg)
386
386
catch e2
387
387
e2 isa TestSetException || rethrow ()
388
388
end
389
+ # Since we're manually constructing a TestSet here to report tests that already ran and
390
+ # were killed, we need to manually set how long those tests were running (if known).
391
+ ts. time_end = ts. time_start + elapsed_seconds
389
392
Test. TESTSET_PRINT_ENABLE[] = true
390
393
push! (testitem. testsets, ts)
391
394
push! (testitem. stats, PerfStats ()) # No data since testitem didn't complete
0 commit comments