John Chadwick : kernel32/tests: Add test for GetSystemFirmwareTable.
Alexandre Julliard
julliard at winehq.org
Wed Nov 20 16:49:12 CST 2019
Module: wine
Branch: master
Commit: 2acbe4f0960d95a45e0c79539fd2eca10033e740
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2acbe4f0960d95a45e0c79539fd2eca10033e740
Author: John Chadwick <john at jchw.io>
Date: Wed Nov 20 00:40:32 2019 -0800
kernel32/tests: Add test for GetSystemFirmwareTable.
This adds a test to ensure that a typical usage of
GetSystemFirmwareTable with a preflight call works correctly.
Signed-off-by: John Chadwick <john at jchw.io>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/tests/version.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/kernel32/tests/version.c b/dlls/kernel32/tests/version.c
index c1b7c9c59d..db42fc5a29 100644
--- a/dlls/kernel32/tests/version.c
+++ b/dlls/kernel32/tests/version.c
@@ -737,6 +737,10 @@ static void test_GetSystemFirmwareTable(void)
pNtQuerySystemInformation(SystemFirmwareTableInformation, sfti, expected_len, &expected_len);
expected_len -= min_sfti_len;
+ len = pGetSystemFirmwareTable(RSMB, 0, NULL, 0);
+todo_wine
+ ok(len == expected_len, "Expected length %u, got %u\n", expected_len, len);
+
smbios_table = HeapAlloc(GetProcessHeap(), 0, expected_len);
len = pGetSystemFirmwareTable(RSMB, 0, smbios_table, expected_len);
ok(len == expected_len, "Expected length %u, got %u\n", expected_len, len);
More information about the wine-cvs
mailing list