winmm/tests: Don't mess with the mixer controls in non-interactive mode.

This commit is contained in:
Alexandre Julliard 2007-12-05 13:47:30 +01:00
parent f4ec0a209b
commit dfc0564993
1 changed files with 8 additions and 12 deletions

View File

@ -195,11 +195,10 @@ static void mixer_test_controlA(HMIXER mix, LPMIXERCONTROLA control)
ok(rc==MMSYSERR_NOERROR,"mixerGetControlDetails(MIXER_GETCONTROLDETAILSF_VALUE): "
"MMSYSERR_NOERROR expected, got %s\n",
mmsys_error(rc));
if (rc==MMSYSERR_NOERROR) {
if (rc==MMSYSERR_NOERROR && winetest_interactive) {
MIXERCONTROLDETAILS new_details;
MIXERCONTROLDETAILS_UNSIGNED new_value;
if (winetest_interactive)
trace(" Value=%d\n",value.dwValue);
if (value.dwValue + control->Metrics.cSteps < S1(control->Bounds).dwMaximum)
@ -275,11 +274,10 @@ static void mixer_test_controlA(HMIXER mix, LPMIXERCONTROLA control)
ok(rc==MMSYSERR_NOERROR,"mixerGetControlDetails(MIXER_GETCONTROLDETAILSF_VALUE): "
"MMSYSERR_NOERROR expected, got %s\n",
mmsys_error(rc));
if (rc==MMSYSERR_NOERROR) {
if (rc==MMSYSERR_NOERROR && winetest_interactive) {
MIXERCONTROLDETAILS new_details;
MIXERCONTROLDETAILS_BOOLEAN new_value;
if (winetest_interactive)
trace(" Value=%d\n",value.fValue);
if (value.fValue == FALSE)
@ -584,11 +582,10 @@ static void mixer_test_controlW(HMIXER mix, LPMIXERCONTROLW control)
ok(rc==MMSYSERR_NOERROR,"mixerGetControlDetails(MIXER_GETCONTROLDETAILSF_VALUE): "
"MMSYSERR_NOERROR expected, got %s\n",
mmsys_error(rc));
if (rc==MMSYSERR_NOERROR) {
if (rc==MMSYSERR_NOERROR && winetest_interactive) {
MIXERCONTROLDETAILS new_details;
MIXERCONTROLDETAILS_UNSIGNED new_value;
if (winetest_interactive)
trace(" Value=%d\n",value.dwValue);
if (value.dwValue + control->Metrics.cSteps < S1(control->Bounds).dwMaximum)
@ -664,11 +661,10 @@ static void mixer_test_controlW(HMIXER mix, LPMIXERCONTROLW control)
ok(rc==MMSYSERR_NOERROR,"mixerGetControlDetails(MIXER_GETCONTROLDETAILSF_VALUE): "
"MMSYSERR_NOERROR expected, got %s\n",
mmsys_error(rc));
if (rc==MMSYSERR_NOERROR) {
if (rc==MMSYSERR_NOERROR && winetest_interactive) {
MIXERCONTROLDETAILS new_details;
MIXERCONTROLDETAILS_BOOLEAN new_value;
if (winetest_interactive)
trace(" Value=%d\n",value.fValue);
if (value.fValue == FALSE)