Skip to content

Commit 83952ad

Browse files
test-runner: Add raise_tpl test
1 parent 8653e75 commit 83952ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use uefi::{boot, guid, Event, Guid, Identify};
1313

1414
pub fn test(st: &SystemTable<Boot>) {
1515
let bt = st.boot_services();
16+
test_tpl();
1617
info!("Testing timer...");
1718
test_timer(bt);
1819
info!("Testing events...");
@@ -28,6 +29,12 @@ pub fn test(st: &SystemTable<Boot>) {
2829
test_install_configuration_table(st);
2930
}
3031

32+
fn test_tpl() {
33+
info!("Testing watchdog...");
34+
// There's no way to query the TPL, so we can't assert that this does anything.
35+
let _guard = unsafe { boot::raise_tpl(Tpl::NOTIFY) };
36+
}
37+
3138
fn test_timer(bt: &BootServices) {
3239
let timer_event = unsafe { bt.create_event(EventType::TIMER, Tpl::APPLICATION, None, None) }
3340
.expect("Failed to create TIMER event");

0 commit comments

Comments
 (0)