File tree 1 file changed +8
-3
lines changed
uefi-test-runner/src/boot
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ pub fn test(st: &SystemTable<Boot>) {
15
15
info ! ( "Testing boot services" ) ;
16
16
memory:: test ( bt) ;
17
17
misc:: test ( st) ;
18
- test_locate_handle_buffer ( bt) ;
18
+ test_locate_handles ( bt) ;
19
19
test_load_image ( bt) ;
20
20
}
21
21
22
- fn test_locate_handle_buffer ( bt : & BootServices ) {
23
- info ! ( "Testing the `locate_handle_buffer` function " ) ;
22
+ fn test_locate_handles ( bt : & BootServices ) {
23
+ info ! ( "Testing the `locate_handle_buffer`/`find_handles` functions " ) ;
24
24
25
25
{
26
26
// search all handles
@@ -51,6 +51,11 @@ fn test_locate_handle_buffer(bt: &BootServices) {
51
51
* handles,
52
52
* boot:: locate_handle_buffer( SearchType :: ByProtocol ( & Output :: GUID ) ) . unwrap( )
53
53
) ;
54
+
55
+ // Compare with `boot::find_handles`. This implicitly tests
56
+ // `boot::locate_handle` as well.
57
+ let handles_vec = boot:: find_handles :: < Output > ( ) . unwrap ( ) ;
58
+ assert_eq ! ( * handles, handles_vec) ;
54
59
}
55
60
}
56
61
You can’t perform that action at this time.
0 commit comments