File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
uefi-test-runner/src/proto Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ use uefi:: boot:: { self , OpenProtocolParams } ;
12use uefi:: prelude:: * ;
23use uefi:: proto:: loaded_image:: LoadedImage ;
3- use uefi:: { boot , proto, Identify } ;
4+ use uefi:: { proto, Identify } ;
45
56pub fn test ( st : & mut SystemTable < Boot > ) {
67 info ! ( "Testing various protocols" ) ;
@@ -11,6 +12,7 @@ pub fn test(st: &mut SystemTable<Boot>) {
1112 find_protocol ( bt) ;
1213 test_protocols_per_handle ( bt) ;
1314 test_protocols_per_handle_freestanding ( ) ;
15+ test_test_protocol_freestanding ( ) ;
1416
1517 debug:: test ( bt) ;
1618 device_path:: test ( bt) ;
@@ -63,6 +65,15 @@ fn test_protocols_per_handle_freestanding() {
6365 assert ! ( pph. iter( ) . any( |guid| * * guid == LoadedImage :: GUID ) ) ;
6466}
6567
68+ fn test_test_protocol_freestanding ( ) {
69+ assert ! ( boot:: test_protocol:: <LoadedImage >( OpenProtocolParams {
70+ handle: boot:: image_handle( ) ,
71+ agent: boot:: image_handle( ) ,
72+ controller: None ,
73+ } )
74+ . unwrap( ) ) ;
75+ }
76+
6677mod console;
6778mod debug;
6879mod device_path;
You can’t perform that action at this time.
0 commit comments