user32/tests: Skip some tests with inconsistent results with non-us kbd.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2019-10-23 13:09:30 +02:00 committed by Alexandre Julliard
parent dd497ffcdd
commit 4928f5134a
1 changed files with 13 additions and 0 deletions

View File

@ -284,6 +284,13 @@ static BOOL TestASet( HWND hWnd, int nrkev, const KEV kevdwn[], const KEV kevup[
int i,j,k,l,m,n; int i,j,k,l,m,n;
static int count=0; static int count=0;
KEV kbuf[MAXKEYEVENTS]; KEV kbuf[MAXKEYEVENTS];
BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409);
if (!us_kbd)
{
win_skip( "skipping test with inconsistent results on non-us keyboard\n" );
return TRUE;
}
assert( nrkev==2 || nrkev==3); assert( nrkev==2 || nrkev==3);
for(i=0;i<MAXKEYEVENTS;i++) kbuf[i]=0; for(i=0;i<MAXKEYEVENTS;i++) kbuf[i]=0;
/* two keys involved gives 4 test cases */ /* two keys involved gives 4 test cases */
@ -1184,6 +1191,12 @@ static void test_Input_unicode(void)
HHOOK hook; HHOOK hook;
HMODULE hModuleImm32; HMODULE hModuleImm32;
BOOL (WINAPI *pImmDisableIME)(DWORD); BOOL (WINAPI *pImmDisableIME)(DWORD);
BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409);
if (!us_kbd)
{
win_skip( "skipping test with inconsistent results on non-us keyboard\n" );
return;
}
wclass.lpszClassName = classNameW; wclass.lpszClassName = classNameW;
wclass.style = CS_HREDRAW | CS_VREDRAW; wclass.style = CS_HREDRAW | CS_VREDRAW;