]> git.lizzy.rs Git - rust.git/blobdiff - library/test/src/console.rs
Auto merge of #102318 - Amanieu:default_alloc_error_handler, r=oli-obk
[rust.git] / library / test / src / console.rs
index 8cb88016b23ade5b5fb6bdfdf9dce3f128440576..a3c39f71f08b88ef38fd3e7673a78d062a78f630 100644 (file)
@@ -293,7 +293,7 @@ pub fn run_tests_console(opts: &TestOpts, tests: Vec<TestDescAndFn>) -> io::Resu
     run_tests(opts, tests, |x| on_test_event(&x, &mut st, &mut *out))?;
     st.exec_time = start_time.map(|t| TestSuiteExecTime(t.elapsed()));
 
-    assert!(st.current_test_count() == st.total);
+    assert!(opts.fail_fast || st.current_test_count() == st.total);
 
     out.write_run_finish(&st)
 }