[PATCH 3/4] user32/tests: Do not expect ToAscii with 'A' vkey to return 'a' on non-us keyboards.
Rémi Bernon
rbernon at codeweavers.com
Wed Oct 23 05:34:09 CDT 2019
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
dlls/user32/tests/input.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index 14399a6aac0..130ce49bb57 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -1885,6 +1885,7 @@ static void test_ToAscii(void)
const BYTE SC_RETURN = 0x1c, SC_A = 0x1e;
const BYTE HIGHEST_BIT = 0x80;
int ret;
+ BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409);
memset(state, 0, sizeof(state));
@@ -1896,7 +1897,7 @@ static void test_ToAscii(void)
character = 0;
ret = ToAscii('A', SC_A, state, &character, 0);
ok(ret == 1, "ToAscii for character 'A' didn't return 1 (was %i)\n", ret);
- ok(character == 'a', "ToAscii for character 'A' was %i (expected %i)\n", character, 'a');
+ if (us_kbd) ok(character == 'a', "ToAscii for character 'A' was %i (expected %i)\n", character, 'a');
state[VK_CONTROL] |= HIGHEST_BIT;
state[VK_LCONTROL] |= HIGHEST_BIT;
--
2.24.0.rc0
More information about the wine-devel
mailing list