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 {
|
if self.0 == 1 {
|
||||||
panic!("panic 1");
|
panic!("panic 1");
|
||||||
} else {
|
} else {
|
||||||
eprint!("drop {}", self.0);
|
eprintln!("drop {}", self.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user