rust/tests/ui/process/println-with-broken-pipe.run.stderr
Martin Nordholts 075a6bbef9 Regression test println!() panic message on ErrorKind::BrokenPipe
No existing test failed if the [`panic!()`][1] of the `println!()`
family of functions was removed, or if its message was changed.

So add such a test.

[1] 104f4300cf/library/std/src/io/stdio.rs (L1007-L1009)
2023-07-26 13:41:39 +02:00

3 lines
194 B
Plaintext

thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', library/std/src/io/stdio.rs:LL:CC
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace