dsound/tests: Trace the number of tested DirectSound drivers.

This commit is contained in:
Francois Gouget 2012-08-13 00:16:13 +02:00 committed by Alexandre Julliard
parent ed7faad1ed
commit 4d24132ea4
3 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)