We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1510b08 commit f707849Copy full SHA for f707849
uefi-test-runner/src/proto/device_path.rs
@@ -1,9 +1,11 @@
1
use alloc::string::ToString;
2
use alloc::vec::Vec;
3
+use uefi::boot;
4
use uefi::prelude::*;
5
use uefi::proto::device_path::text::*;
6
use uefi::proto::device_path::{DevicePath, LoadedImageDevicePath};
7
use uefi::proto::loaded_image::LoadedImage;
8
+use uefi::proto::media::disk::DiskIo;
9
10
pub fn test(bt: &BootServices) {
11
info!("Running device path protocol test");
@@ -64,6 +66,10 @@ pub fn test(bt: &BootServices) {
64
66
{
65
67
assert_eq!(n1, n2);
68
}
69
+
70
+ // Test `locate_device_path`.
71
+ let mut dp = &*device_path;
72
+ boot::locate_device_path::<DiskIo>(&mut dp).unwrap();
73
74
75
// test 2/2: test high-level to-string api
0 commit comments