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
645ca750
Commit
645ca750
authored
Dec 29, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic/tests: Centralize the skip().
parent
5f5c21e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
dmusic.c
dlls/dmusic/tests/dmusic.c
+17
-10
No files found.
dlls/dmusic/tests/dmusic.c
View file @
645ca750
...
...
@@ -62,11 +62,7 @@ static void test_dmusic(void)
IReferenceClock
*
clock
=
NULL
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusic
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusic
,
(
LPVOID
*
)
&
dmusic
);
if
(
hr
!=
S_OK
)
{
skip
(
"Cannot create DirectMusic object (%x)
\n
"
,
hr
);
return
;
}
ok
(
hr
==
S_OK
,
"Cannot create DirectMusic object (%x)
\n
"
,
hr
);
hr
=
IDirectMusic_GetMasterClock
(
dmusic
,
&
guid_clock
,
&
clock
);
ok
(
hr
==
S_OK
,
"IDirectMusic_GetMasterClock returned: %x
\n
"
,
hr
);
...
...
@@ -149,11 +145,7 @@ static void test_dmbuffer(void)
LPBYTE
data
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusic
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusic
,
(
LPVOID
*
)
&
dmusic
);
if
(
hr
!=
S_OK
)
{
skip
(
"Cannot create DirectMusic object (%x)
\n
"
,
hr
);
return
;
}
ok
(
hr
==
S_OK
,
"Cannot create DirectMusic object (%x)
\n
"
,
hr
);
desc
.
dwSize
=
sizeof
(
DMUS_BUFFERDESC
);
desc
.
dwFlags
=
0
;
...
...
@@ -230,10 +222,25 @@ static void test_dmbuffer(void)
IDirectMusic_Release
(
dmusic
);
}
static
BOOL
missing_dmusic
(
void
)
{
IDirectMusic8
*
dm
;
HRESULT
hr
=
CoCreateInstance
(
&
CLSID_DirectMusic
,
(
IUnknown
*
)
&
dm
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
dm
);
return
(
hr
==
REGDB_E_CLASSNOTREG
||
hr
==
CLASS_E_CLASSNOTAVAILABLE
);
}
START_TEST
(
dmusic
)
{
CoInitializeEx
(
NULL
,
COINIT_MULTITHREADED
);
if
(
missing_dmusic
())
{
skip
(
"DirectMusic not available
\n
"
);
CoUninitialize
();
return
;
}
test_dmusic
();
test_dmbuffer
();
...
...
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