X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Ftest%2Fsrc%2Fconsole.rs;h=1ee68c8540bcc39518f81c7609c08fb036314bd8;hb=dc3e59cb3fe05ebd752d3a2269f501c00327be22;hp=24cbe035f2fa7e3e9082d38a6c44355dd47711da;hpb=771cfa5581fd245b0d45e839e791b10e01ebb8a7;p=rust.git diff --git a/library/test/src/console.rs b/library/test/src/console.rs index 24cbe035f2f..1ee68c8540b 100644 --- a/library/test/src/console.rs +++ b/library/test/src/console.rs @@ -53,6 +53,7 @@ pub struct ConsoleTestState { pub metrics: MetricMap, pub failures: Vec<(TestDesc, Vec)>, pub not_failures: Vec<(TestDesc, Vec)>, + pub ignores: Vec<(TestDesc, Vec)>, pub time_failures: Vec<(TestDesc, Vec)>, pub options: Options, } @@ -76,6 +77,7 @@ pub fn new(opts: &TestOpts) -> io::Result { metrics: MetricMap::new(), failures: Vec::new(), not_failures: Vec::new(), + ignores: Vec::new(), time_failures: Vec::new(), options: opts.options, }) @@ -194,7 +196,10 @@ fn handle_test_result(st: &mut ConsoleTestState, completed_test: CompletedTest) st.passed += 1; st.not_failures.push((test, stdout)); } - TestResult::TrIgnored => st.ignored += 1, + TestResult::TrIgnored => { + st.ignored += 1; + st.ignores.push((test, stdout)); + } TestResult::TrBench(bs) => { st.metrics.insert_metric( test.name.as_slice(),