Remove superfluous printing from tests

Our test_runner now prints these messages automatically (see #816 and #817).
This commit is contained in:
Philipp Oppermann
2020-06-08 12:11:39 +02:00
parent 433fd26173
commit c081c3f51f
4 changed files with 5 additions and 24 deletions

View File

@@ -382,16 +382,12 @@ The reason is a _race condition_ between the test and our timer handler. Remembe
#[test_case]
fn test_println_output() {
serial_print!("test_println_output... ");
let s = "Some test string that fits on a single line";
println!("{}", s);
for (i, c) in s.chars().enumerate() {
let screen_char = WRITER.lock().buffer.chars[BUFFER_HEIGHT - 2][i].read();
assert_eq!(char::from(screen_char.ascii_character), c);
}
serial_println!("[ok]");
}
```
@@ -409,8 +405,6 @@ fn test_println_output() {
use core::fmt::Write;
use x86_64::instructions::interrupts;
serial_print!("test_println_output... ");
let s = "Some test string that fits on a single line";
interrupts::without_interrupts(|| {
let mut writer = WRITER.lock();
@@ -420,8 +414,6 @@ fn test_println_output() {
assert_eq!(char::from(screen_char.ascii_character), c);
}
});
serial_println!("[ok]");
}
```