Skip to content

Commit a11f98a

Browse files
test-runner: Test boot::set_watchdog_timer
1 parent cc77178 commit a11f98a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

uefi-test-runner/src/boot/misc.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,14 @@ fn test_callback_with_ctx(bt: &BootServices) {
119119
}
120120

121121
fn test_watchdog(bt: &BootServices) {
122-
// Disable the UEFI watchdog timer
122+
// There's no way to check the watchdog timer value, so just test setting it.
123+
124+
// Disable the UEFI watchdog timer.
123125
bt.set_watchdog_timer(0, 0x10000, None)
124126
.expect("Could not set watchdog timer");
127+
128+
// Set the timer with the freestanding function.
129+
boot::set_watchdog_timer(240, 0x10000, None).expect("Could not set watchdog timer");
125130
}
126131

127132
/// Dummy protocol for tests

0 commit comments

Comments
 (0)