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
b01760e7
Commit
b01760e7
authored
Apr 25, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Remove unreliable IAsyncOperation_boolean checks.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fb0af5d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
force_feedback.c
dlls/dinput/tests/force_feedback.c
+6
-15
No files found.
dlls/dinput/tests/force_feedback.c
View file @
b01760e7
...
...
@@ -5193,7 +5193,6 @@ static void test_windows_gaming_input(void)
UINT32
size
;
HRESULT
hr
;
DWORD
ret
;
ULONG
ref
;
if
(
!
load_combase_functions
())
return
;
...
...
@@ -5395,8 +5394,7 @@ static void test_windows_gaming_input(void)
check_bool_async
(
bool_async
,
1
,
4
,
S_OK
,
FALSE
);
IAsyncInfo_Release
(
async_info
);
ref
=
IAsyncOperation_boolean_Release
(
bool_async
);
ok
(
ref
==
0
,
"Release returned %lu
\n
"
,
ref
);
IAsyncOperation_boolean_Release
(
bool_async
);
set_hid_expect
(
file
,
&
expect_enable_fail
,
sizeof
(
expect_enable_fail
)
);
...
...
@@ -5423,8 +5421,7 @@ static void test_windows_gaming_input(void)
check_bool_async
(
bool_async
,
1
,
4
,
0x8685400d
,
FALSE
);
IAsyncInfo_Release
(
async_info
);
ref
=
IAsyncOperation_boolean_Release
(
bool_async
);
ok
(
ref
==
0
,
"Release returned %lu
\n
"
,
ref
);
IAsyncOperation_boolean_Release
(
bool_async
);
/* canceling the async op is just ignored */
...
...
@@ -5468,8 +5465,7 @@ static void test_windows_gaming_input(void)
ok
(
hr
==
S_OK
,
"get_Completed returned %#lx
\n
"
,
hr
);
ok
(
tmp_handler
==
NULL
,
"got handler %p
\n
"
,
tmp_handler
);
ref
=
IAsyncOperation_boolean_Release
(
bool_async
);
ok
(
ref
==
0
,
"Release returned %lu
\n
"
,
ref
);
IAsyncOperation_boolean_Release
(
bool_async
);
/* canceling then closing it calls the handler with closed state */
...
...
@@ -5514,8 +5510,7 @@ static void test_windows_gaming_input(void)
hr
=
IAsyncOperation_boolean_get_Completed
(
bool_async
,
&
tmp_handler
);
ok
(
hr
==
E_ILLEGAL_METHOD_CALL
,
"get_Completed returned %#lx
\n
"
,
hr
);
ref
=
IAsyncOperation_boolean_Release
(
bool_async
);
ok
(
ref
==
0
,
"Release returned %lu
\n
"
,
ref
);
IAsyncOperation_boolean_Release
(
bool_async
);
set_hid_expect
(
file
,
&
expect_enable
,
sizeof
(
expect_enable
)
);
...
...
@@ -5523,9 +5518,7 @@ static void test_windows_gaming_input(void)
todo_wine
ok
(
hr
==
S_OK
,
"TryEnableAsync returned %#lx
\n
"
,
hr
);
wait_hid_expect_
(
__FILE__
,
__LINE__
,
file
,
100
,
TRUE
);
check_bool_async
(
bool_async
,
1
,
Completed
,
S_OK
,
TRUE
);
ref
=
IAsyncOperation_boolean_Release
(
bool_async
);
ok
(
ref
==
0
,
"Release returned %lu
\n
"
,
ref
);
IAsyncOperation_boolean_Release
(
bool_async
);
set_hid_expect
(
file
,
expect_reset
,
sizeof
(
expect_reset
)
);
...
...
@@ -5533,9 +5526,7 @@ static void test_windows_gaming_input(void)
todo_wine
ok
(
hr
==
S_OK
,
"TryResetAsync returned %#lx
\n
"
,
hr
);
wait_hid_expect_
(
__FILE__
,
__LINE__
,
file
,
100
,
TRUE
);
check_bool_async
(
bool_async
,
1
,
Completed
,
S_OK
,
TRUE
);
ref
=
IAsyncOperation_boolean_Release
(
bool_async
);
ok
(
ref
==
0
,
"Release returned %lu
\n
"
,
ref
);
IAsyncOperation_boolean_Release
(
bool_async
);
IForceFeedbackMotor_Release
(
motor
);
...
...
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