[PATCH 2/4] user32/tests: Skip inconsistent OemKeyScan tests on non-us keyboard.

Rémi Bernon rbernon at codeweavers.com
Fri May 14 04:46:48 CDT 2021


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 dlls/user32/tests/input.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index 8c67fc67cb3..9e877c9ae76 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -4171,6 +4171,13 @@ static void test_OemKeyScan(void)
     WCHAR oem, wchr;
     char oem_char;
 
+    BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409);
+    if (!us_kbd)
+    {
+        skip("skipping test with inconsistent results on non-us keyboard\n");
+        return;
+    }
+
     for (oem = 0; oem < 0x200; oem++)
     {
         ret = OemKeyScan( oem );
-- 
2.31.0




More information about the wine-devel mailing list