File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -231,14 +231,16 @@ impl<'a> Renderer<'a> {
231
231
print ! ( "\n test result: " ) ;
232
232
self . builder . colored_stdout ( |stdout| outcome. write_long ( stdout) ) . unwrap ( ) ;
233
233
println ! (
234
- ". {} passed; {} failed; {} ignored; {} measured; {} filtered out; \
235
- finished in {:.2?}\n ",
234
+ ". {} passed; {} failed; {} ignored; {} measured; {} filtered out{time}\n " ,
236
235
suite. passed,
237
236
suite. failed,
238
237
suite. ignored,
239
238
suite. measured,
240
239
suite. filtered_out,
241
- Duration :: from_secs_f64( suite. exec_time)
240
+ time = match suite. exec_time {
241
+ Some ( t) => format!( "; finished in {:.2?}" , Duration :: from_secs_f64( t) ) ,
242
+ None => format!( "" ) ,
243
+ }
242
244
) ;
243
245
}
244
246
@@ -374,7 +376,9 @@ struct SuiteOutcome {
374
376
ignored : usize ,
375
377
measured : usize ,
376
378
filtered_out : usize ,
377
- exec_time : f64 ,
379
+ /// The time it took to execute this test suite, or `None` if time measurement was not possible
380
+ /// (e.g. due to running inside Miri).
381
+ exec_time : Option < f64 > ,
378
382
}
379
383
380
384
#[ derive( serde_derive:: Deserialize ) ]
You can’t perform that action at this time.
0 commit comments