From 1aa71ea39e31ecd87025e96d60c0640ca53e78bc Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sat, 30 May 2009 20:43:31 +0200 Subject: [PATCH] winmm/tests: Remove an unreliable test. --- dlls/winmm/tests/wave.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index 6430667a873..b509f74c909 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -604,7 +604,6 @@ static void wave_out_test_deviceOut(int device, double duration, DWORD nSamplesPerSec = pwfx->nSamplesPerSec; BOOL has_volume = pcaps->dwSupport & WAVECAPS_VOLUME ? TRUE : FALSE; double paused = 0.0; - DWORD actual; DWORD_PTR callback = 0; DWORD_PTR callback_instance = 0; HANDLE thread = 0; @@ -724,7 +723,7 @@ static void wave_out_test_deviceOut(int device, double duration, } if (interactive && rc==MMSYSERR_NOERROR) { - DWORD start,end; + DWORD start; trace("Playing %g second %s at %5dx%2dx%d %2d header%s %d loop%s %d bytes %s %s\n",duration, sine ? "440Hz tone" : "silence",pwfx->nSamplesPerSec, pwfx->wBitsPerSample,pwfx->nChannels, headers, headers > 1 ? "s": " ", @@ -791,13 +790,6 @@ static void wave_out_test_deviceOut(int device, double duration, } } - /* Check the sound duration was at least 90% of the expected value */ - end=GetTickCount(); - actual = end - start; - trace("sound duration=%u ms\n",actual); - ok(actual > 900 * (duration+paused), - "The sound played for %u ms instead of %g ms\n", - actual,1000*(duration+paused)); for (i = 0; i < headers; i++) { ok(frags[i].dwFlags==(WHDR_DONE|WHDR_PREPARED), "WHDR_DONE WHDR_PREPARED expected, got %s\n", -- 2.11.4.GIT