diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2019-09-11 17:13:34 -0700 |
|---|---|---|
| committer | Tyler Mandry <tmandry@gmail.com> | 2019-09-28 13:52:18 -0700 |
| commit | 8ae1ec60cc16e5d2a3d522a2e3fdddd27e5fb4c9 (patch) | |
| tree | a2764361c43fe99fb568cd8c671d77883a1c7819 /src/libtest/formatters | |
| parent | 76b12bd8fdd8c512cf9685a8ec51e76643f2f86f (diff) | |
| download | rust-8ae1ec60cc16e5d2a3d522a2e3fdddd27e5fb4c9.tar.gz rust-8ae1ec60cc16e5d2a3d522a2e3fdddd27e5fb4c9.zip | |
Spawn one subprocess per unit test when panic=abort
Diffstat (limited to 'src/libtest/formatters')
| -rw-r--r-- | src/libtest/formatters/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libtest/formatters/mod.rs b/src/libtest/formatters/mod.rs index e97cda76d23..dd202fb3ab6 100644 --- a/src/libtest/formatters/mod.rs +++ b/src/libtest/formatters/mod.rs @@ -22,3 +22,12 @@ pub(crate) trait OutputFormatter { ) -> io::Result<()>; fn write_run_finish(&mut self, state: &ConsoleTestState) -> io::Result<bool>; } + +pub(crate) fn write_stderr_delimiter(test_output: &mut Vec<u8>, test_name: &TestName) { + match test_output.last() { + Some(b'\n') => (), + Some(_) => test_output.push(b'\n'), + None => (), + } + write!(test_output, "---- {} stderr ----\n", test_name).unwrap(); +} |
