Fix two run-fail tests for asmjs

Use eprintln!() to make sure stdio is flushed.
This commit is contained in:
Nikita Popov 2018-11-02 19:11:31 +01:00
parent 9eb19273a3
commit 97e1d36937
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ fn drop(&mut self) {
if self.0 == 1 { if self.0 == 1 {
panic!("panic 1"); panic!("panic 1");
} else { } else {
eprint!("drop {}", self.0); eprintln!("drop {}", self.0);
} }
} }
} }

View File

@ -14,7 +14,7 @@
fn main() { fn main() {
panic::set_hook(Box::new(|i| { panic::set_hook(Box::new(|i| {
eprint!("greetings from the panic handler"); eprintln!("greetings from the panic handler");
})); }));
panic!("foobar"); panic!("foobar");
} }