diff options
| author | Vincent Stehlé <[email protected]> | 2023-01-06 10:46:41 +0100 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2023-01-13 09:09:07 +0100 |
| commit | 4d4ec2581065c2437f90661530e30f907bd6b62f (patch) | |
| tree | 99404520efed1a6521d4bc56cac301592c081c68 /lib | |
| parent | 65b91a346ebed631494b6ad405dbd91e07157ec4 (diff) | |
efi_selftest: add hii set keyboard layout test case
Add a test for the case when the HII database protocol
set_keyboard_layout() function is called with a NULL key_guid argument.
Signed-off-by: Vincent Stehlé <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/efi_selftest/efi_selftest_hii.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/efi_selftest/efi_selftest_hii.c b/lib/efi_selftest/efi_selftest_hii.c index eaf3b0995d4..f4b55889e29 100644 --- a/lib/efi_selftest/efi_selftest_hii.c +++ b/lib/efi_selftest/efi_selftest_hii.c @@ -564,7 +564,19 @@ out: */ static int test_hii_database_set_keyboard_layout(void) { + efi_status_t ret; + PRINT_TESTNAME; + + /* Invalid key guid. */ + ret = hii_database_protocol->set_keyboard_layout( + hii_database_protocol, NULL); + if (ret != EFI_INVALID_PARAMETER) { + efi_st_error("set_keyboard_layout returned %u not invalid\n", + (unsigned int)ret); + return EFI_ST_FAILURE; + } + /* set_keyboard_layout() not implemented yet */ return EFI_ST_SUCCESS; } |
