Rémi Bernon : user32/tests: Do not expect char vkey to return the same char everywhere.

Alexandre Julliard julliard at winehq.org
Wed Oct 23 15:31:32 CDT 2019


Module: wine
Branch: master
Commit: c56c76e61e1e47faafa31087ee0ea20a78bd388b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c56c76e61e1e47faafa31087ee0ea20a78bd388b

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Wed Oct 23 12:34:08 2019 +0200

user32/tests: Do not expect char vkey to return the same char everywhere.

Results may depend on the keyboard layout, and the tests were failing on
VMs with non-us layouts.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/input.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index d768e64cdc..14399a6aac 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -1763,15 +1763,16 @@ static const struct tounicode_tests
     WCHAR expect_buf[4];
 } utests[] =
 {
-    { 'A', 0, 0, 1, {'a',0}},
-    { 'A', ctrl, 0, 1, {1, 0}},
-    { 'A', shift|ctrl, 0, 1, {1, 0}},
+    { 0, 0, 'a', 1, {'a',0}},
+    { 0, shift, 'a', 1, {'A',0}},
+    { 0, ctrl, 'a', 1, {1, 0}},
+    { 0, shift|ctrl, 'a', 1, {1, 0}},
     { VK_TAB, ctrl, 0, 0, {}},
     { VK_TAB, shift|ctrl, 0, 0, {}},
     { VK_RETURN, ctrl, 0, 1, {'\n', 0}},
     { VK_RETURN, shift|ctrl, 0, 0, {}},
-    { '4', ctrl, 0, 0, {}},
-    { '4', shift|ctrl, 0, 0, {}},
+    { 0, ctrl, '4', 0, {}},
+    { 0, shift|ctrl, '4', 0, {}},
     { 0, ctrl, '!', 0, {}},
     { 0, ctrl, '\"', 0, {}},
     { 0, ctrl, '#', 0, {}},




More information about the wine-cvs mailing list