From b954263a089ee3f67cd17a534554d9914fac10a1 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Thu, 1 Aug 2024 12:25:00 -0400 Subject: [PATCH] test-runner: Test boot::create_event --- uefi-test-runner/src/proto/media.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uefi-test-runner/src/proto/media.rs b/uefi-test-runner/src/proto/media.rs index 8590ecb81..16a99c909 100644 --- a/uefi-test-runner/src/proto/media.rs +++ b/uefi-test-runner/src/proto/media.rs @@ -1,6 +1,7 @@ use alloc::string::ToString; use core::cell::RefCell; use core::ptr::NonNull; +use uefi::boot; use uefi::data_types::Align; use uefi::prelude::*; use uefi::proto::media::block::BlockIO; @@ -305,8 +306,7 @@ fn test_raw_disk_io2(handle: Handle, bt: &BootServices) { unsafe { // Create the completion event - let mut event = bt - .create_event(EventType::empty(), Tpl::NOTIFY, None, None) + let mut event = boot::create_event(EventType::empty(), Tpl::NOTIFY, None, None) .expect("Failed to create disk I/O completion event"); // Initialise the task context