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
96b823c2
Commit
96b823c2
authored
Jan 19, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Differentiate missing from broken HID reports.
parent
6c44228c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
driver_bus.c
dlls/dinput/tests/driver_bus.c
+4
-3
driver_hid.h
dlls/dinput/tests/driver_hid.h
+1
-1
hid.c
dlls/dinput/tests/hid.c
+4
-4
No files found.
dlls/dinput/tests/driver_bus.c
View file @
96b823c2
...
...
@@ -131,7 +131,7 @@ static void expect_queue_reset( struct expect_queue *queue, void *buffer, unsign
while
(
tmp
!=
missing_end
)
{
winetest_push_context
(
"%s expect[%Id]"
,
context
,
tmp
-
missing
);
if
(
tmp
->
broken
)
if
(
tmp
->
broken
_id
)
{
todo_wine_if
(
tmp
->
todo
)
win_skip
(
"broken (code %#lx id %u len %u)
\n
"
,
tmp
->
code
,
tmp
->
report_id
,
tmp
->
report_len
);
...
...
@@ -251,8 +251,9 @@ static void expect_queue_next( struct expect_queue *queue, ULONG code, HID_XFER_
tmp
=
queue
->
pos
;
while
(
tmp
<
queue
->
end
)
{
BOOL
is_missing
=
tmp
->
broken_id
==
(
BYTE
)
-
1
;
if
(
winetest_platform_is_wine
&&
!
tmp
->
todo
)
break
;
if
(
!
winetest_platform_is_wine
&&
!
tmp
->
broken
&&
!
tmp
->
wine_only
)
break
;
if
(
!
winetest_platform_is_wine
&&
!
is_missing
&&
!
tmp
->
wine_only
)
break
;
if
(
tmp
->
code
==
code
&&
tmp
->
report_id
==
id
&&
tmp
->
report_len
==
len
&&
(
!
compare_buf
||
RtlCompareMemory
(
tmp
->
report_buf
,
buf
,
len
)
==
len
))
break
;
...
...
@@ -303,7 +304,7 @@ static void expect_queue_next( struct expect_queue *queue, ULONG code, HID_XFER_
while
(
tmp
!=
missing_end
)
{
winetest_push_context
(
"%s expect[%Id]"
,
context
,
tmp
-
missing
);
if
(
tmp
->
broken
)
if
(
tmp
->
broken
_id
)
{
todo_wine_if
(
tmp
->
todo
)
win_skip
(
"broken (code %#lx id %u len %u)
\n
"
,
tmp
->
code
,
tmp
->
report_id
,
tmp
->
report_len
);
...
...
dlls/dinput/tests/driver_hid.h
View file @
96b823c2
...
...
@@ -56,7 +56,7 @@ struct hid_expect
DWORD
ret_length
;
DWORD
ret_status
;
BYTE
todo
;
/* missing on wine */
BYTE
broken
;
/* missing
on some win versions */
BYTE
broken
_id
;
/* different or missing (-1) report
on some win versions */
BYTE
wine_only
;
BYTE
report_id
;
BYTE
report_len
;
...
...
dlls/dinput/tests/hid.c
View file @
96b823c2
...
...
@@ -1048,7 +1048,7 @@ static void test_hidp_get_input( HANDLE file, int report_id, ULONG report_len, P
struct
hid_expect
broken_expect
=
{
.
code
=
IOCTL_HID_GET_INPUT_REPORT
,
.
broken
=
TRUE
,
.
broken
_id
=
-
1
,
.
report_len
=
report_len
-
1
,
.
report_buf
=
{
...
...
@@ -1142,7 +1142,7 @@ static void test_hidp_get_feature( HANDLE file, int report_id, ULONG report_len,
struct
hid_expect
broken_expect
=
{
.
code
=
IOCTL_HID_GET_FEATURE
,
.
broken
=
TRUE
,
.
broken
_id
=
-
1
,
.
report_len
=
report_len
-
1
,
.
report_buf
=
{
...
...
@@ -1240,7 +1240,7 @@ static void test_hidp_set_feature( HANDLE file, int report_id, ULONG report_len,
struct
hid_expect
broken_expect
=
{
.
code
=
IOCTL_HID_SET_FEATURE
,
.
broken
=
TRUE
,
.
broken
_id
=
-
1
,
.
report_len
=
report_len
-
1
,
.
report_buf
=
{
...
...
@@ -1341,7 +1341,7 @@ static void test_hidp_set_output( HANDLE file, int report_id, ULONG report_len,
struct
hid_expect
broken_expect
=
{
.
code
=
IOCTL_HID_SET_OUTPUT_REPORT
,
.
broken
=
TRUE
,
.
broken
_id
=
-
1
,
.
report_len
=
report_len
-
1
,
.
report_buf
=
{
0x5a
,
0x5a
},
.
ret_length
=
3
,
...
...
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