We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 269d5b5 commit 21de27cCopy full SHA for 21de27c
src/bootstrap/src/utils/render_tests.rs
@@ -250,8 +250,14 @@ impl<'a> Renderer<'a> {
250
if failure.stdout.is_some() || failure.message.is_some() {
251
println!("---- {} stdout ----", failure.name);
252
if let Some(stdout) = &failure.stdout {
253
- println!("{stdout}");
+ // Captured test output normally ends with a newline,
254
+ // so only use `println!` if it doesn't.
255
+ print!("{stdout}");
256
+ if !stdout.ends_with('\n') {
257
+ println!("\n\\ (no newline at end of output)");
258
+ }
259
}
260
+ println!("---- {} stdout end ----", failure.name);
261
if let Some(message) = &failure.message {
262
println!("NOTE: {message}");
263
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments