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
b80d1d5d
Commit
b80d1d5d
authored
Oct 21, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Oct 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't consider a device that is already in use a test failure.
parent
ffc86d5a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
23 deletions
+35
-23
ds3d.c
dlls/dsound/tests/ds3d.c
+5
-2
ds3d8.c
dlls/dsound/tests/ds3d8.c
+5
-2
dsound.c
dlls/dsound/tests/dsound.c
+11
-9
dsound8.c
dlls/dsound/tests/dsound8.c
+10
-8
propset.c
dlls/dsound/tests/propset.c
+4
-2
No files found.
dlls/dsound/tests/ds3d.c
View file @
b80d1d5d
...
...
@@ -875,8 +875,8 @@ static HRESULT test_for_driver(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -1156,6 +1156,9 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
if
(
rc
==
DSERR_NODRIVER
)
{
trace
(
" No Driver
\n
"
);
return
1
;
}
else
if
(
rc
==
DSERR_ALLOCATED
)
{
trace
(
" Already In Use
\n
"
);
return
1
;
}
trace
(
" Testing the primary buffer
\n
"
);
...
...
dlls/dsound/tests/ds3d8.c
View file @
b80d1d5d
...
...
@@ -789,8 +789,8 @@ static HRESULT test_for_driver8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -1071,6 +1071,9 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
if
(
rc
==
DSERR_NODRIVER
)
{
trace
(
" No Driver
\n
"
);
return
1
;
}
else
if
(
rc
==
DSERR_ALLOCATED
)
{
trace
(
" Already In Use
\n
"
);
return
1
;
}
trace
(
" Testing the primary buffer
\n
"
);
...
...
dlls/dsound/tests/dsound.c
View file @
b80d1d5d
...
...
@@ -249,8 +249,8 @@ static HRESULT test_dsound(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -349,8 +349,8 @@ static HRESULT test_primary(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -491,8 +491,8 @@ static HRESULT test_primary_secondary(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -628,8 +628,8 @@ static HRESULT test_secondary(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -725,7 +725,9 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
trace
(
"*** Testing %s - %s ***
\n
"
,
lpcstrDescription
,
lpcstrModule
);
rc
=
test_dsound
(
lpGuid
);
if
(
rc
==
DSERR_NODRIVER
)
trace
(
" No Driver
\n
"
);
trace
(
" No Driver
\n
"
);
else
if
(
rc
==
DSERR_ALLOCATED
)
trace
(
" Already In Use
\n
"
);
else
{
test_primary
(
lpGuid
);
test_primary_secondary
(
lpGuid
);
...
...
dlls/dsound/tests/dsound8.c
View file @
b80d1d5d
...
...
@@ -260,8 +260,8 @@ static HRESULT test_dsound8(LPGUID lpGuid)
/* Create the DirectSound8 object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -371,8 +371,8 @@ static HRESULT test_primary8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -513,8 +513,8 @@ static HRESULT test_primary_secondary8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -650,8 +650,8 @@ static HRESULT test_secondary8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -748,6 +748,8 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
rc
=
test_dsound8
(
lpGuid
);
if
(
rc
==
DSERR_NODRIVER
)
trace
(
" No Driver
\n
"
);
else
if
(
rc
==
DSERR_ALLOCATED
)
trace
(
" Already In Use
\n
"
);
else
{
test_primary8
(
lpGuid
);
test_primary_secondary8
(
lpGuid
);
...
...
dlls/dsound/tests/propset.c
View file @
b80d1d5d
...
...
@@ -268,11 +268,13 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
trace
(
"*** Testing %s - %s ***
\n
"
,
lpcstrDescription
,
lpcstrModule
);
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
||
rc
==
DSERR_ALLOCATED
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
{
if
(
rc
==
DSERR_NODRIVER
)
trace
(
" No Driver
\n
"
);
else
if
(
rc
==
DSERR_ALLOCATED
)
trace
(
" Already In Use
\n
"
);
goto
EXIT
;
}
...
...
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