X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Ftest%2Fsrc%2Fconsole.rs;h=e9dda98966de3f638044ed1d9e80d1f28aa22253;hb=85916c7e357b48d01d03afdb1640dcb374d589ae;hp=dc0123cf43266a4446fcde65f4395b2dbdb58173;hpb=4ec97d991b1bd86dc89fee761d79ac8e85239a08;p=rust.git diff --git a/library/test/src/console.rs b/library/test/src/console.rs index dc0123cf432..e9dda98966d 100644 --- a/library/test/src/console.rs +++ b/library/test/src/console.rs @@ -137,7 +137,7 @@ fn current_test_count(&self) -> usize { // List the tests to console, and optionally to logfile. Filters are honored. pub fn list_tests_console(opts: &TestOpts, tests: Vec) -> io::Result<()> { let mut output = match term::stdout() { - None => OutputLocation::Raw(io::stdout()), + None => OutputLocation::Raw(io::stdout().lock()), Some(t) => OutputLocation::Pretty(t), };