Robert Reif : dsound: Add info to failed tests.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Mar 15 05:11:56 CST 2006


Module: wine
Branch: refs/heads/master
Commit: c460d9becf818d85fd8f65786a3d1b18a155efef
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=c460d9becf818d85fd8f65786a3d1b18a155efef

Author: Robert Reif <reif at earthlink.net>
Date:   Tue Mar 14 19:17:43 2006 -0500

dsound: Add info to failed tests.

Print format for failed SetFormat calls.

---

 dlls/dsound/tests/ds3d.c    |    4 ++--
 dlls/dsound/tests/ds3d8.c   |    4 ++--
 dlls/dsound/tests/dsound.c  |    4 ++--
 dlls/dsound/tests/dsound8.c |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/dsound/tests/ds3d.c b/dlls/dsound/tests/ds3d.c
index ce7be84..3d0c434 100644
--- a/dlls/dsound/tests/ds3d.c
+++ b/dlls/dsound/tests/ds3d.c
@@ -378,8 +378,8 @@ void test_buffer(LPDIRECTSOUND dso, LPDI
 
         init_format(&wfx2,WAVE_FORMAT_PCM,11025,16,2);
         rc=IDirectSoundBuffer_SetFormat(*dsbo,&wfx2);
-        ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
-           DXGetErrorString8(rc));
+        ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
+           format_string(&wfx2), DXGetErrorString8(rc));
 
         /* There is no garantee that SetFormat will actually change the
 	 * format to what we asked for. It depends on what the soundcard
diff --git a/dlls/dsound/tests/ds3d8.c b/dlls/dsound/tests/ds3d8.c
index 6d440e2..c0c5d51 100644
--- a/dlls/dsound/tests/ds3d8.c
+++ b/dlls/dsound/tests/ds3d8.c
@@ -270,8 +270,8 @@ void test_buffer8(LPDIRECTSOUND8 dso, LP
 
         init_format(&wfx2,WAVE_FORMAT_PCM,11025,16,2);
         rc=IDirectSoundBuffer_SetFormat(*dsbo,&wfx2);
-        ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
-           DXGetErrorString8(rc));
+        ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
+           format_string(&wfx2), DXGetErrorString8(rc));
 
         /* There is no garantee that SetFormat will actually change the
 	 * format to what we asked for. It depends on what the soundcard
diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c
index 672ffe2..7905c99 100644
--- a/dlls/dsound/tests/dsound.c
+++ b/dlls/dsound/tests/dsound.c
@@ -550,8 +550,8 @@ static HRESULT test_primary_secondary(LP
                         formats[f][2]);
             wfx2=wfx;
             rc=IDirectSoundBuffer_SetFormat(primary,&wfx);
-            ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
-               DXGetErrorString8(rc));
+            ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
+               format_string(&wfx), DXGetErrorString8(rc));
 
             /* There is no garantee that SetFormat will actually change the
              * format to what we asked for. It depends on what the soundcard
diff --git a/dlls/dsound/tests/dsound8.c b/dlls/dsound/tests/dsound8.c
index b5dc483..7a58330 100644
--- a/dlls/dsound/tests/dsound8.c
+++ b/dlls/dsound/tests/dsound8.c
@@ -582,8 +582,8 @@ static HRESULT test_primary_secondary8(L
                         formats[f][2]);
             wfx2=wfx;
             rc=IDirectSoundBuffer_SetFormat(primary,&wfx);
-            ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
-               DXGetErrorString8(rc));
+            ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
+               format_string(&wfx), DXGetErrorString8(rc));
 
             /* There is no garantee that SetFormat will actually change the
              * format to what we asked for. It depends on what the soundcard




More information about the wine-cvs mailing list