From 97e1d36937e3e0e13801e83e94f3d6d61ba4ad27 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 2 Nov 2018 19:11:31 +0100 Subject: [PATCH] Fix two run-fail tests for asmjs Use eprintln!() to make sure stdio is flushed. --- src/test/run-fail/mir_drop_panics.rs | 2 +- src/test/run-fail/panic-set-handler.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/run-fail/mir_drop_panics.rs b/src/test/run-fail/mir_drop_panics.rs index 51191dd7087..b3980f32d27 100644 --- a/src/test/run-fail/mir_drop_panics.rs +++ b/src/test/run-fail/mir_drop_panics.rs @@ -17,7 +17,7 @@ fn drop(&mut self) { if self.0 == 1 { panic!("panic 1"); } else { - eprint!("drop {}", self.0); + eprintln!("drop {}", self.0); } } } diff --git a/src/test/run-fail/panic-set-handler.rs b/src/test/run-fail/panic-set-handler.rs index 2d430be07ef..2fa933d513a 100644 --- a/src/test/run-fail/panic-set-handler.rs +++ b/src/test/run-fail/panic-set-handler.rs @@ -14,7 +14,7 @@ fn main() { panic::set_hook(Box::new(|i| { - eprint!("greetings from the panic handler"); + eprintln!("greetings from the panic handler"); })); panic!("foobar"); }