user32/tests: Use skip() to skip tests when using a non-US keyboard.

Otherwise, under Wine, win_skip() counts as a failure.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2020-06-24 10:00:32 +01:00 committed by Alexandre Julliard
parent e3ab70b82a
commit afe3e698c5
1 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ static BOOL TestASet( HWND hWnd, int nrkev, const KEV kevdwn[], const KEV kevup[
BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409); BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409);
if (!us_kbd) if (!us_kbd)
{ {
win_skip( "skipping test with inconsistent results on non-us keyboard\n" ); skip( "skipping test with inconsistent results on non-us keyboard\n" );
return TRUE; return TRUE;
} }
@ -1193,7 +1193,7 @@ static void test_Input_unicode(void)
BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409); BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409);
if (!us_kbd) if (!us_kbd)
{ {
win_skip( "skipping test with inconsistent results on non-us keyboard\n" ); skip( "skipping test with inconsistent results on non-us keyboard\n" );
return; return;
} }