Skip to content

Commit 97e1d36

Browse files
committed
Fix two run-fail tests for asmjs
Use eprintln!() to make sure stdio is flushed.
1 parent 9eb1927 commit 97e1d36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/run-fail/mir_drop_panics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl Drop for Droppable {
1717
if self.0 == 1 {
1818
panic!("panic 1");
1919
} else {
20-
eprint!("drop {}", self.0);
20+
eprintln!("drop {}", self.0);
2121
}
2222
}
2323
}

src/test/run-fail/panic-set-handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::panic;
1414

1515
fn main() {
1616
panic::set_hook(Box::new(|i| {
17-
eprint!("greetings from the panic handler");
17+
eprintln!("greetings from the panic handler");
1818
}));
1919
panic!("foobar");
2020
}

0 commit comments

Comments
 (0)