()
| 481 | klog_ok("boot".ptr) |
| 482 | return 0 |
| 483 | } |
| 484 | "#, |
| 485 | ); |
| 486 | assert_eq!(uart, "[ OK ] boot\n"); |
| 487 | assert_eq!(exit, Some(0)); |
| 488 | } |
| 489 | |
| 490 | #[test] |
| 491 | fn klog_error_output() { |
| 492 | let (uart, exit) = run_with( |
| 493 | KLOG_SRC, |
| 494 | r#" |
| 495 | main: () -> i32 { |
| 496 | klog_error("fault".ptr) |
| 497 | return 0 |
| 498 | } |
| 499 | "#, |
| 500 | ); |
nothing calls this directly
no test coverage detected