File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
uefi-test-runner/src/boot Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,18 @@ fn test_load_image(bt: &BootServices) {
85
85
buffer : image_data. as_slice ( ) ,
86
86
file_path : None ,
87
87
} ;
88
- let _ = bt
88
+ let loaded_image = bt
89
89
. load_image ( bt. image_handle ( ) , load_source)
90
90
. expect ( "should load image" ) ;
91
91
92
92
log:: debug!( "load_image with FromBuffer strategy works" ) ;
93
+
94
+ // Check that the `LoadedImageDevicePath` protocol can be opened and
95
+ // that the interface data is `None`.
96
+ let loaded_image_device_path = bt
97
+ . open_protocol_exclusive :: < LoadedImageDevicePath > ( loaded_image)
98
+ . expect ( "should open LoadedImageDevicePath protocol" ) ;
99
+ assert ! ( loaded_image_device_path. get( ) . is_none( ) ) ;
93
100
}
94
101
// Variant B: FromDevicePath
95
102
{
You can’t perform that action at this time.
0 commit comments