]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_selftest: test FatToStr() truncation
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 22 Nov 2022 11:25:10 +0000 (12:25 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 2 Dec 2022 18:17:24 +0000 (19:17 +0100)
Let the FatToStr test check that the FatSize parameter is considered.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_selftest/efi_selftest_unicode_collation.c

index 11050a37cf7ab7a246efb1e944f89b70f59ae4db..32c99caf35221abd7e3ece2d7bd4d15b49527f0c 100644 (file)
@@ -178,7 +178,7 @@ static int test_fat_to_str(void)
 
        boottime->set_mem(str, sizeof(str), 0);
        unicode_collation_protocol->fat_to_str(unicode_collation_protocol, 6,
-                                              "U-BOOT", str);
+                                              "U-BOOT!", str);
        if (efi_st_strcmp_16_8(str, "U-BOOT")) {
                efi_st_error("fat_to_str returned \"%ps\"\n", str);
                return EFI_ST_FAILURE;