Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
67f55f9b
Commit
67f55f9b
authored
Feb 14, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime/tests: Move some ok() calls to make it clear what is being tested.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dec6abf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
performance.c
dlls/dmime/tests/performance.c
+6
-16
No files found.
dlls/dmime/tests/performance.c
View file @
67f55f9b
...
...
@@ -270,35 +270,27 @@ static void test_createport(void)
/* dwValidParams == 0 -> S_OK, filled struct */
portparams
.
dwValidParams
=
0
;
hr
=
IDirectMusic_CreatePort
(
music
,
&
CLSID_DirectMusicSynth
,
&
portparams
,
&
port
,
NULL
);
hr
=
IDirectMusic_CreatePort
(
music
,
&
CLSID_DirectMusicSynth
,
&
portparams
,
&
port
,
NULL
);
ok
(
hr
==
S_OK
,
"CreatePort failed: %08x
\n
"
,
hr
);
ok
(
port
!=
NULL
,
"Didn't get IDirectMusicPort pointer
\n
"
);
todo_wine
ok
(
portparams
.
dwValidParams
,
"portparams struct was not filled in
\n
"
);
IDirectMusicPort_Release
(
port
);
port
=
NULL
;
todo_wine
ok
(
portparams
.
dwValidParams
!=
0
,
"portparams struct was not filled in
\n
"
);
/* dwValidParams != 0, invalid param -> S_FALSE, filled struct */
portparams
.
dwValidParams
=
DMUS_PORTPARAMS_CHANNELGROUPS
;
portparams
.
dwChannelGroups
=
0
;
hr
=
IDirectMusic_CreatePort
(
music
,
&
CLSID_DirectMusicSynth
,
&
portparams
,
&
port
,
NULL
);
hr
=
IDirectMusic_CreatePort
(
music
,
&
CLSID_DirectMusicSynth
,
&
portparams
,
&
port
,
NULL
);
todo_wine
ok
(
hr
==
S_FALSE
,
"CreatePort failed: %08x
\n
"
,
hr
);
ok
(
port
!=
NULL
,
"Didn't get IDirectMusicPort pointer
\n
"
);
ok
(
portparams
.
dwValidParams
,
"portparams struct was not filled in
\n
"
);
IDirectMusicPort_Release
(
port
);
port
=
NULL
;
ok
(
portparams
.
dwValidParams
!=
0
,
"portparams struct was not filled in
\n
"
);
/* dwValidParams != 0, valid params -> S_OK */
hr
=
IDirectMusic_CreatePort
(
music
,
&
CLSID_DirectMusicSynth
,
&
portparams
,
&
port
,
NULL
);
hr
=
IDirectMusic_CreatePort
(
music
,
&
CLSID_DirectMusicSynth
,
&
portparams
,
&
port
,
NULL
);
ok
(
hr
==
S_OK
,
"CreatePort failed: %08x
\n
"
,
hr
);
ok
(
port
!=
NULL
,
"Didn't get IDirectMusicPort pointer
\n
"
);
IDirectMusicPort_Release
(
port
);
port
=
NULL
;
...
...
@@ -307,12 +299,10 @@ static void test_createport(void)
hr
=
IDirectMusic_CreatePort
(
music
,
&
GUID_NULL
,
&
portparams
,
&
port
,
NULL
);
ok
(
hr
==
S_OK
,
"CreatePort failed: %08x
\n
"
,
hr
);
ok
(
port
!=
NULL
,
"Didn't get IDirectMusicPort pointer
\n
"
);
todo_wine
ok
(
portparams
.
dwValidParams
,
"portparams struct was not filled in
\n
"
);
IDirectMusicPort_Release
(
port
);
port
=
NULL
;
todo_wine
ok
(
portparams
.
dwValidParams
!=
0
,
"portparams struct was not filled in
\n
"
);
/* null GUID fails */
portparams
.
dwValidParams
=
0
;
hr
=
IDirectMusic_CreatePort
(
music
,
NULL
,
&
portparams
,
&
port
,
NULL
);
...
...
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