Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3fad9cac
Commit
3fad9cac
authored
Apr 06, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Mark some tests as flaky to work around fvwm bug.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54594
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54713
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54774
parent
048b0421
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
device8.c
dlls/dinput/tests/device8.c
+12
-2
No files found.
dlls/dinput/tests/device8.c
View file @
3fad9cac
...
...
@@ -395,11 +395,13 @@ void test_overlapped_format( DWORD version )
/* press D */
keybd_event
(
0
,
DIK_D
,
KEYEVENTF_SCANCODE
,
0
);
res
=
WaitForSingleObject
(
event
,
5000
);
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
&&
version
==
0x800
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
res
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %#lx
\n
"
,
res
);
count
=
10
;
hr
=
IDirectInputDevice_GetDeviceData
(
keyboard
,
data_size
,
NULL
,
&
count
,
0
);
ok
(
hr
==
DI_OK
,
"GetDeviceData returned %#lx
\n
"
,
hr
);
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
&&
version
==
0x800
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
count
==
1
,
"got count %lu
\n
"
,
count
);
memset
(
&
state
,
0xFF
,
sizeof
(
state
)
);
...
...
@@ -415,11 +417,13 @@ void test_overlapped_format( DWORD version )
/* release D */
keybd_event
(
0
,
DIK_D
,
KEYEVENTF_SCANCODE
|
KEYEVENTF_KEYUP
,
0
);
res
=
WaitForSingleObject
(
event
,
5000
);
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
&&
version
==
0x800
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
res
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %#lx
\n
"
,
res
);
count
=
10
;
hr
=
IDirectInputDevice_GetDeviceData
(
keyboard
,
data_size
,
NULL
,
&
count
,
0
);
ok
(
hr
==
DI_OK
,
"GetDeviceData returned %#lx
\n
"
,
hr
);
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
&&
version
==
0x800
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
count
==
1
,
"got count %lu
\n
"
,
count
);
...
...
@@ -682,14 +686,19 @@ static void test_mouse_keyboard(void)
IDirectInputDevice8_SetCooperativeLevel
(
di_keyboard
,
hwnd
,
DISCL_FOREGROUND
|
DISCL_EXCLUSIVE
);
hr
=
IDirectInputDevice8_Acquire
(
di_keyboard
);
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice8_Acquire failed: %#lx
\n
"
,
hr
);
hr
=
IDirectInputDevice8_Acquire
(
di_mouse
);
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice8_Acquire failed: %#lx
\n
"
,
hr
);
raw_devices_count
=
ARRAY_SIZE
(
raw_devices
);
memset
(
raw_devices
,
0
,
sizeof
(
raw_devices
));
hr
=
GetRegisteredRawInputDevices
(
raw_devices
,
&
raw_devices_count
,
sizeof
(
RAWINPUTDEVICE
));
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
hr
==
3
,
"GetRegisteredRawInputDevices returned %ld, raw_devices_count: %d
\n
"
,
hr
,
raw_devices_count
);
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
raw_devices
[
0
].
dwFlags
==
(
RIDEV_CAPTUREMOUSE
|
RIDEV_NOLEGACY
),
"Unexpected raw device flags: %#lx
\n
"
,
raw_devices
[
0
].
dwFlags
);
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
raw_devices
[
2
].
dwFlags
==
(
RIDEV_NOHOTKEYS
|
RIDEV_NOLEGACY
),
"Unexpected raw device flags: %#lx
\n
"
,
raw_devices
[
1
].
dwFlags
);
hr
=
IDirectInputDevice8_Unacquire
(
di_keyboard
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice8_Acquire failed: %#lx
\n
"
,
hr
);
...
...
@@ -1581,7 +1590,7 @@ cleanup:
localized
=
old_localized
;
}
static
void
test_dik_codes
(
IDirectInputDevice8W
*
device
,
HANDLE
event
,
HWND
hwnd
)
static
void
test_dik_codes
(
IDirectInputDevice8W
*
device
,
HANDLE
event
,
HWND
hwnd
,
DWORD
version
)
{
static
const
struct
key2dik
{
...
...
@@ -1685,6 +1694,7 @@ static void test_dik_codes( IDirectInputDevice8W *device, HANDLE event, HWND hwn
keybd_event
(
vkey
,
scan
,
KEYEVENTF_KEYUP
,
0
);
res
=
WaitForSingleObject
(
event
,
5000
);
flaky_wine_if
(
GetForegroundWindow
()
!=
hwnd
&&
version
==
0x800
)
/* FIXME: fvwm sometimes steals input focus */
ok
(
!
res
,
"WaitForSingleObject returned %#lx
\n
"
,
res
);
winetest_pop_context
();
...
...
@@ -2190,7 +2200,7 @@ skip_key_tests:
ActivateKeyboardLayout
(
old_hkl
,
0
);
UnloadKeyboardLayout
(
hkl
);
test_dik_codes
(
device
,
event
,
hwnd
);
test_dik_codes
(
device
,
event
,
hwnd
,
version
);
CloseHandle
(
event
);
DestroyWindow
(
hwnd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment