diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2018-11-02 19:11:31 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-11-04 18:50:57 +0100 |
| commit | 97e1d36937e3e0e13801e83e94f3d6d61ba4ad27 (patch) | |
| tree | 88dbec148cfca0d081711dee140baee2f100d874 | |
| parent | 9eb19273a3ad514529cbb80f22e198e01de18a82 (diff) | |
| download | rust-97e1d36937e3e0e13801e83e94f3d6d61ba4ad27.tar.gz rust-97e1d36937e3e0e13801e83e94f3d6d61ba4ad27.zip | |
Fix two run-fail tests for asmjs
Use eprintln!() to make sure stdio is flushed.
| -rw-r--r-- | src/test/run-fail/mir_drop_panics.rs | 2 | ||||
| -rw-r--r-- | 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 @@ impl Drop for Droppable { 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 @@ use std::panic; fn main() { panic::set_hook(Box::new(|i| { - eprint!("greetings from the panic handler"); + eprintln!("greetings from the panic handler"); })); panic!("foobar"); } |
