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
44cee36c
Commit
44cee36c
authored
May 13, 2022
by
Bernhard Kölbl
Committed by
Alexandre Julliard
May 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech/tests: Remove some unreliable ref checks.
Signed-off-by:
Bernhard Kölbl
<
besentv@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
01d531f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
speech.c
dlls/windows.media.speech/tests/speech.c
+5
-10
No files found.
dlls/windows.media.speech/tests/speech.c
View file @
44cee36c
...
@@ -1060,8 +1060,7 @@ static void test_SpeechRecognizer(void)
...
@@ -1060,8 +1060,7 @@ static void test_SpeechRecognizer(void)
ok
(
hr
==
E_ILLEGAL_METHOD_CALL
,
"IAsyncInfo_get_ErrorCode failed, hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
E_ILLEGAL_METHOD_CALL
,
"IAsyncInfo_get_ErrorCode failed, hr %#lx.
\n
"
,
hr
);
ok
(
error_code
==
E_ILLEGAL_METHOD_CALL
,
"ErrorCode was %#lx.
\n
"
,
error_code
);
ok
(
error_code
==
E_ILLEGAL_METHOD_CALL
,
"ErrorCode was %#lx.
\n
"
,
error_code
);
ref
=
IAsyncInfo_Release
(
info
);
IAsyncInfo_Release
(
info
);
ok
(
ref
==
1
,
"Got unexpected ref %lu.
\n
"
,
ref
);
hr
=
IAsyncOperation_SpeechRecognitionCompilationResult_put_Completed
(
operation
,
NULL
);
hr
=
IAsyncOperation_SpeechRecognitionCompilationResult_put_Completed
(
operation
,
NULL
);
ok
(
hr
==
E_ILLEGAL_METHOD_CALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
E_ILLEGAL_METHOD_CALL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
@@ -1102,10 +1101,8 @@ static void test_SpeechRecognizer(void)
...
@@ -1102,10 +1101,8 @@ static void test_SpeechRecognizer(void)
ok
(
hr
==
S_OK
,
"IAsyncInfo_get_Status failed, hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IAsyncInfo_get_Status failed, hr %#lx.
\n
"
,
hr
);
ok
(
async_status
==
Completed
,
"Status was %#x.
\n
"
,
async_status
);
ok
(
async_status
==
Completed
,
"Status was %#x.
\n
"
,
async_status
);
ref
=
IAsyncInfo_Release
(
info
);
IAsyncInfo_Release
(
info
);
ok
(
ref
>=
1
,
"Got unexpected ref %lu.
\n
"
,
ref
);
IAsyncOperation_SpeechRecognitionCompilationResult_Release
(
operation
);
ref
=
IAsyncOperation_SpeechRecognitionCompilationResult_Release
(
operation
);
ok
(
ref
>=
0
,
"Got unexpected ref %lu.
\n
"
,
ref
);
ref
=
ISpeechRecognizer_Release
(
recognizer
);
ref
=
ISpeechRecognizer_Release
(
recognizer
);
ok
(
ref
==
1
,
"Got unexpected ref %lu.
\n
"
,
ref
);
ok
(
ref
==
1
,
"Got unexpected ref %lu.
\n
"
,
ref
);
...
@@ -1153,12 +1150,10 @@ static void test_SpeechRecognizer(void)
...
@@ -1153,12 +1150,10 @@ static void test_SpeechRecognizer(void)
CloseHandle
(
compilation_handler
.
event_block
);
CloseHandle
(
compilation_handler
.
event_block
);
CloseHandle
(
compilation_handler
.
event_finished
);
CloseHandle
(
compilation_handler
.
event_finished
);
ref
=
IAsyncInfo_Release
(
info
);
IAsyncInfo_Release
(
info
);
ok
(
ref
==
1
,
"Got unexpected ref %lu.
\n
"
,
ref
);
skip_operation:
skip_operation:
ref
=
IAsyncOperation_SpeechRecognitionCompilationResult_Release
(
operation
);
IAsyncOperation_SpeechRecognitionCompilationResult_Release
(
operation
);
ok
(
!
ref
,
"Got unexpected ref %lu.
\n
"
,
ref
);
ref
=
ISpeechRecognizer_Release
(
recognizer
);
ref
=
ISpeechRecognizer_Release
(
recognizer
);
ok
(
ref
==
1
,
"Got unexpected ref %lu.
\n
"
,
ref
);
ok
(
ref
==
1
,
"Got unexpected ref %lu.
\n
"
,
ref
);
...
...
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