Fix two run-fail tests for asmjs
Use eprintln!() to make sure stdio is flushed.
This commit is contained in:
parent
9eb19273a3
commit
97e1d36937
@ -17,7 +17,7 @@ fn drop(&mut self) {
|
||||
if self.0 == 1 {
|
||||
panic!("panic 1");
|
||||
} else {
|
||||
eprint!("drop {}", self.0);
|
||||
eprintln!("drop {}", self.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user