X Tutup
Skip to content

Commit 3df2084

Browse files
committed
test: Use C11 UTF-16 string literal
1 parent 68da8ad commit 3df2084

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/boot/efi/test-bcd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ static void test_get_bcd_title_one(
3939
}
4040

4141
TEST(get_bcd_title) {
42-
const char16_t win10[] = { 'W', 'i', 'n', 'd', 'o', 'w', 's', ' ', '1', '0', '\0' };
43-
test_get_bcd_title_one("test-bcd/win10.bcd.zst", win10, sizeof(win10));
42+
test_get_bcd_title_one("test-bcd/win10.bcd.zst", u"Windows 10", sizeof(u"Windows 10"));
4443

4544
test_get_bcd_title_one("test-bcd/description-bad-type.bcd.zst", NULL, 0);
4645
test_get_bcd_title_one("test-bcd/description-empty.bcd.zst", NULL, 0);

0 commit comments

Comments
 (0)
X Tutup