Commit c67bfb28 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Don't consider no driver a test failure.

parent 0a16d361
...@@ -577,13 +577,13 @@ static void wave_in_tests() ...@@ -577,13 +577,13 @@ static void wave_in_tests()
rc=waveInGetDevCapsA(WAVE_MAPPER,&capsA,sizeof(capsA)); rc=waveInGetDevCapsA(WAVE_MAPPER,&capsA,sizeof(capsA));
if (ndev>0) if (ndev>0)
ok(rc==MMSYSERR_NOERROR, ok(rc==MMSYSERR_NOERROR || rc==MMSYSERR_NODRIVER,
"waveInGetDevCapsA(%s): MMSYSERR_NOERROR expected, got %s\n", "waveInGetDevCapsA(%s): MMSYSERR_NOERROR or MMSYSERR_NODRIVER "
dev_name(ndev+1),wave_in_error(rc)); "expected, got %s\n",dev_name(WAVE_MAPPER),wave_in_error(rc));
else else
ok(rc==MMSYSERR_BADDEVICEID || rc==MMSYSERR_NODRIVER, ok(rc==MMSYSERR_BADDEVICEID || rc==MMSYSERR_NODRIVER,
"waveInGetDevCapsA(%s): MMSYSERR_BADDEVICEID or MMSYSERR_NODRIVER " "waveInGetDevCapsA(%s): MMSYSERR_BADDEVICEID or MMSYSERR_NODRIVER "
"expected, got %s\n",dev_name(ndev+1),wave_in_error(rc)); "expected, got %s\n",dev_name(WAVE_MAPPER),wave_in_error(rc));
rc=waveInGetDevCapsW(ndev+1,&capsW,sizeof(capsW)); rc=waveInGetDevCapsW(ndev+1,&capsW,sizeof(capsW));
ok(rc==MMSYSERR_BADDEVICEID || rc==MMSYSERR_NOTSUPPORTED, ok(rc==MMSYSERR_BADDEVICEID || rc==MMSYSERR_NOTSUPPORTED,
...@@ -592,9 +592,11 @@ static void wave_in_tests() ...@@ -592,9 +592,11 @@ static void wave_in_tests()
rc=waveInGetDevCapsW(WAVE_MAPPER,&capsW,sizeof(capsW)); rc=waveInGetDevCapsW(WAVE_MAPPER,&capsW,sizeof(capsW));
if (ndev>0) if (ndev>0)
ok(rc==MMSYSERR_NOERROR || rc==MMSYSERR_NOTSUPPORTED, ok(rc==MMSYSERR_NOERROR || rc==MMSYSERR_NODRIVER ||
"waveInGetDevCapsW(%s): MMSYSERR_NOERROR or MMSYSERR_NOTSUPPORTED " rc==MMSYSERR_NOTSUPPORTED,
"expected, got %s\n",dev_name(ndev+1),wave_in_error(rc)); "waveInGetDevCapsW(%s): MMSYSERR_NOERROR or MMSYSERR_NODRIVER or "
"MMSYSERR_NOTSUPPORTED expected, got %s\n",
dev_name(ndev+1),wave_in_error(rc));
else else
ok(rc==MMSYSERR_BADDEVICEID || rc==MMSYSERR_NODRIVER, ok(rc==MMSYSERR_BADDEVICEID || rc==MMSYSERR_NODRIVER,
"waveInGetDevCapsW(%s): MMSYSERR_BADDEVICEID or MMSYSERR_NODRIVER " "waveInGetDevCapsW(%s): MMSYSERR_BADDEVICEID or MMSYSERR_NODRIVER "
......
...@@ -432,11 +432,13 @@ void mixer_test_deviceA(int device) ...@@ -432,11 +432,13 @@ void mixer_test_deviceA(int device)
mixerlineA.dwDestination=d; mixerlineA.dwDestination=d;
rc=mixerGetLineInfoA((HMIXEROBJ)mix,&mixerlineA, rc=mixerGetLineInfoA((HMIXEROBJ)mix,&mixerlineA,
MIXER_GETLINEINFOF_DESTINATION); MIXER_GETLINEINFOF_DESTINATION);
ok(rc==MMSYSERR_NOERROR, ok(rc==MMSYSERR_NOERROR||rc==MMSYSERR_NODRIVER,
"mixerGetLineInfoA(MIXER_GETLINEINFOF_DESTINATION): " "mixerGetLineInfoA(MIXER_GETLINEINFOF_DESTINATION): "
"MMSYSERR_NOERROR expected, got %s\n", "MMSYSERR_NOERROR expected, got %s\n",
mmsys_error(rc)); mmsys_error(rc));
if (rc==MMSYSERR_NOERROR && winetest_interactive) { if (rc==MMSYSERR_NODRIVER)
trace(" No Driver\n");
else if (rc==MMSYSERR_NOERROR && winetest_interactive) {
trace(" %ld: \"%s\" (%s) Destination=%ld Source=%ld\n", trace(" %ld: \"%s\" (%s) Destination=%ld Source=%ld\n",
d,mixerlineA.szShortName, mixerlineA.szName, d,mixerlineA.szShortName, mixerlineA.szName,
mixerlineA.dwDestination,mixerlineA.dwSource); mixerlineA.dwDestination,mixerlineA.dwSource);
...@@ -464,11 +466,13 @@ void mixer_test_deviceA(int device) ...@@ -464,11 +466,13 @@ void mixer_test_deviceA(int device)
mixerlineA.dwSource=s; mixerlineA.dwSource=s;
rc=mixerGetLineInfoA((HMIXEROBJ)mix,&mixerlineA, rc=mixerGetLineInfoA((HMIXEROBJ)mix,&mixerlineA,
MIXER_GETLINEINFOF_SOURCE); MIXER_GETLINEINFOF_SOURCE);
ok(rc==MMSYSERR_NOERROR, ok(rc==MMSYSERR_NOERROR||rc==MMSYSERR_NODRIVER,
"mixerGetLineInfoA(MIXER_GETLINEINFOF_SOURCE): " "mixerGetLineInfoA(MIXER_GETLINEINFOF_SOURCE): "
"MMSYSERR_NOERROR expected, got %s\n", "MMSYSERR_NOERROR expected, got %s\n",
mmsys_error(rc)); mmsys_error(rc));
if (rc==MMSYSERR_NOERROR) { if (rc==MMSYSERR_NODRIVER)
trace(" No Driver\n");
else if (rc==MMSYSERR_NOERROR) {
LPMIXERCONTROLA array; LPMIXERCONTROLA array;
MIXERLINECONTROLSA controls; MIXERLINECONTROLSA controls;
if (winetest_interactive) { if (winetest_interactive) {
...@@ -809,11 +813,13 @@ void mixer_test_deviceW(int device) ...@@ -809,11 +813,13 @@ void mixer_test_deviceW(int device)
mixerlineW.dwDestination=d; mixerlineW.dwDestination=d;
rc=mixerGetLineInfoW((HMIXEROBJ)mix,&mixerlineW, rc=mixerGetLineInfoW((HMIXEROBJ)mix,&mixerlineW,
MIXER_GETLINEINFOF_DESTINATION); MIXER_GETLINEINFOF_DESTINATION);
ok(rc==MMSYSERR_NOERROR, ok(rc==MMSYSERR_NOERROR||rc==MMSYSERR_NODRIVER,
"mixerGetLineInfoW(MIXER_GETLINEINFOF_DESTINATION): " "mixerGetLineInfoW(MIXER_GETLINEINFOF_DESTINATION): "
"MMSYSERR_NOERROR expected, got %s\n", "MMSYSERR_NOERROR expected, got %s\n",
mmsys_error(rc)); mmsys_error(rc));
if (rc==MMSYSERR_NOERROR && winetest_interactive) { if (rc==MMSYSERR_NODRIVER)
trace(" No Driver\n");
else if (rc==MMSYSERR_NOERROR && winetest_interactive) {
WideCharToMultiByte(CP_ACP,0,mixerlineW.szShortName, WideCharToMultiByte(CP_ACP,0,mixerlineW.szShortName,
MIXER_SHORT_NAME_CHARS,szShortName, MIXER_SHORT_NAME_CHARS,szShortName,
MIXER_SHORT_NAME_CHARS,NULL,NULL); MIXER_SHORT_NAME_CHARS,NULL,NULL);
...@@ -849,11 +855,13 @@ void mixer_test_deviceW(int device) ...@@ -849,11 +855,13 @@ void mixer_test_deviceW(int device)
mixerlineW.dwSource=s; mixerlineW.dwSource=s;
rc=mixerGetLineInfoW((HMIXEROBJ)mix,&mixerlineW, rc=mixerGetLineInfoW((HMIXEROBJ)mix,&mixerlineW,
MIXER_GETLINEINFOF_SOURCE); MIXER_GETLINEINFOF_SOURCE);
ok(rc==MMSYSERR_NOERROR, ok(rc==MMSYSERR_NOERROR||rc==MMSYSERR_NODRIVER,
"mixerGetLineInfoW(MIXER_GETLINEINFOF_SOURCE): " "mixerGetLineInfoW(MIXER_GETLINEINFOF_SOURCE): "
"MMSYSERR_NOERROR expected, got %s\n", "MMSYSERR_NOERROR expected, got %s\n",
mmsys_error(rc)); mmsys_error(rc));
if (rc==MMSYSERR_NOERROR) { if (rc==MMSYSERR_NODRIVER)
trace(" No Driver\n");
else if (rc==MMSYSERR_NOERROR) {
LPMIXERCONTROLW array; LPMIXERCONTROLW array;
MIXERLINECONTROLSW controls; MIXERLINECONTROLSW controls;
if (winetest_interactive) { if (winetest_interactive) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment