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