mirror of
https://github.com/reactos/wine.git
synced 2024-12-01 15:40:43 +00:00
dsound/tests: Trace the number of tested DirectSound drivers.
This commit is contained in:
parent
ed7faad1ed
commit
4d24132ea4
@ -1258,11 +1258,14 @@ return DSERR_GENERIC;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static unsigned driver_count = 0;
|
||||
|
||||
static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
|
||||
LPCSTR lpcstrModule, LPVOID lpContext)
|
||||
{
|
||||
HRESULT rc;
|
||||
trace("*** Testing %s - %s ***\n",lpcstrDescription,lpcstrModule);
|
||||
driver_count++;
|
||||
|
||||
rc = test_for_driver(lpGuid);
|
||||
if (rc == DSERR_NODRIVER) {
|
||||
@ -1309,6 +1312,7 @@ static void ds3d_tests(void)
|
||||
HRESULT rc;
|
||||
rc=pDirectSoundEnumerateA(&dsenum_callback,NULL);
|
||||
ok(rc==DS_OK,"DirectSoundEnumerateA() failed: %08x\n",rc);
|
||||
trace("tested %u DirectSound drivers\n", driver_count);
|
||||
}
|
||||
|
||||
START_TEST(ds3d)
|
||||
|
@ -1081,11 +1081,14 @@ return DSERR_GENERIC;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static unsigned driver_count = 0;
|
||||
|
||||
static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
|
||||
LPCSTR lpcstrModule, LPVOID lpContext)
|
||||
{
|
||||
HRESULT rc;
|
||||
trace("*** Testing %s - %s ***\n",lpcstrDescription,lpcstrModule);
|
||||
driver_count++;
|
||||
|
||||
rc = test_for_driver8(lpGuid);
|
||||
if (rc == DSERR_NODRIVER) {
|
||||
@ -1132,6 +1135,7 @@ static void ds3d8_tests(void)
|
||||
HRESULT rc;
|
||||
rc=pDirectSoundEnumerateA(&dsenum_callback,NULL);
|
||||
ok(rc==DS_OK,"DirectSoundEnumerateA() failed: %08x\n",rc);
|
||||
trace("tested %u DirectSound drivers\n", driver_count);
|
||||
}
|
||||
|
||||
START_TEST(ds3d8)
|
||||
|
@ -553,6 +553,8 @@ static void propset_private_tests(void)
|
||||
IKsPropertySet_Release(pps);
|
||||
}
|
||||
|
||||
static unsigned driver_count = 0;
|
||||
|
||||
static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
|
||||
LPCSTR lpcstrModule, LPVOID lpContext)
|
||||
{
|
||||
@ -564,6 +566,7 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
|
||||
int ref;
|
||||
|
||||
trace("*** Testing %s - %s ***\n",lpcstrDescription,lpcstrModule);
|
||||
driver_count++;
|
||||
|
||||
rc=pDirectSoundCreate(lpGuid,&dso,NULL);
|
||||
ok(rc==DS_OK||rc==DSERR_NODRIVER||rc==DSERR_ALLOCATED||rc==E_FAIL,
|
||||
@ -710,6 +713,7 @@ static void propset_buffer_tests(void)
|
||||
HRESULT rc;
|
||||
rc=pDirectSoundEnumerateA(&dsenum_callback,NULL);
|
||||
ok(rc==DS_OK,"DirectSoundEnumerateA() failed: %08x\n",rc);
|
||||
trace("tested %u DirectSound drivers\n", driver_count);
|
||||
}
|
||||
|
||||
START_TEST(propset)
|
||||
|
Loading…
Reference in New Issue
Block a user