Remove superfluous printing from many_boxes_long_lived test

This commit is contained in:
Philipp Oppermann
2020-06-08 12:09:49 +02:00
parent c66758ccad
commit cc8ecaadc2

View File

@@ -56,14 +56,12 @@ fn many_boxes() {
#[test_case] #[test_case]
fn many_boxes_long_lived() { fn many_boxes_long_lived() {
serial_print!("many_boxes_long_lived... ");
let long_lived = Box::new(1); // new let long_lived = Box::new(1); // new
for i in 0..HEAP_SIZE { for i in 0..HEAP_SIZE {
let x = Box::new(i); let x = Box::new(i);
assert_eq!(*x, i); assert_eq!(*x, i);
} }
assert_eq!(*long_lived, 1); // new assert_eq!(*long_lived, 1); // new
serial_println!("[ok]");
} }
#[panic_handler] #[panic_handler]