[PATCH 3/3] winmm/tests: Remove unreliable tests

Nikolay Sivov nsivov at codeweavers.com
Tue Nov 24 13:02:37 CST 2015


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/winmm/tests/capture.c | 4 ----
 dlls/winmm/tests/wave.c    | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/dlls/winmm/tests/capture.c b/dlls/winmm/tests/capture.c
index bc17ce3..54c3793 100644
--- a/dlls/winmm/tests/capture.c
+++ b/dlls/winmm/tests/capture.c
@@ -316,7 +316,6 @@ static void wave_in_test_device(UINT_PTR device)
     GetSystemInfo(&sSysInfo);
     dwPageSize = sSysInfo.dwPageSize;
 
-    memset(&capsA, 0xff, sizeof(capsA));
     rc=waveInGetDevCapsA(device,&capsA,sizeof(capsA));
     ok(rc==MMSYSERR_NOERROR || rc==MMSYSERR_BADDEVICEID ||
        rc==MMSYSERR_NODRIVER,
@@ -324,14 +323,11 @@ static void wave_in_test_device(UINT_PTR device)
        dev_name(device),wave_in_error(rc));
     if (rc==MMSYSERR_BADDEVICEID || rc==MMSYSERR_NODRIVER)
         return;
-    ok(capsA.wReserved1 != 0xffff, "got %u\n", capsA.wReserved1);
 
-    memset(&capsW, 0xcc, sizeof(capsW));
     rc=waveInGetDevCapsW(device,&capsW,sizeof(capsW));
     ok(rc==MMSYSERR_NOERROR || rc==MMSYSERR_NOTSUPPORTED,
        "waveInGetDevCapsW(%s): MMSYSERR_NOERROR or MMSYSERR_NOTSUPPORTED "
        "expected, got %s\n",dev_name(device),wave_in_error(rc));
-    ok(capsW.wReserved1 == 0, "got %u\n", capsW.wReserved1);
 
     rc=waveInGetDevCapsA(device,NULL,sizeof(capsA));
     ok(rc==MMSYSERR_INVALPARAM,
diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c
index 896f332..a2fe8bb 100644
--- a/dlls/winmm/tests/wave.c
+++ b/dlls/winmm/tests/wave.c
@@ -893,7 +893,6 @@ static void wave_out_test_device(UINT_PTR device)
     GetSystemInfo(&sSysInfo);
     dwPageSize = sSysInfo.dwPageSize;
 
-    memset(&capsA, 0xcc, sizeof(capsA));
     rc=waveOutGetDevCapsA(device,&capsA,sizeof(capsA));
     ok(rc==MMSYSERR_NOERROR || rc==MMSYSERR_BADDEVICEID ||
        rc==MMSYSERR_NODRIVER,
@@ -901,14 +900,11 @@ static void wave_out_test_device(UINT_PTR device)
        dev_name(device),wave_out_error(rc));
     if (rc==MMSYSERR_BADDEVICEID || rc==MMSYSERR_NODRIVER)
         return;
-    ok(capsA.wReserved1 == 0, "got %u\n", capsA.wReserved1);
 
-    memset(&capsW, 0xcc, sizeof(capsW));
     rc=waveOutGetDevCapsW(device,&capsW,sizeof(capsW));
     ok(rc==MMSYSERR_NOERROR || rc==MMSYSERR_NOTSUPPORTED,
        "waveOutGetDevCapsW(%s): MMSYSERR_NOERROR or MMSYSERR_NOTSUPPORTED "
        "expected, got %s\n",dev_name(device),wave_out_error(rc));
-    ok(capsW.wReserved1 == 0, "got %u\n", capsW.wReserved1);
 
     rc=waveOutGetDevCapsA(device,0,sizeof(capsA));
     ok(rc==MMSYSERR_INVALPARAM,
-- 
2.6.2




More information about the wine-patches mailing list