Austin English : d3dx9_36: Make sure return values are used (LLVM/Clang).

Alexandre Julliard julliard at winehq.org
Wed Feb 9 15:30:15 CST 2011


Module: wine
Branch: master
Commit: 517f6aa5264c369da2fbcc78245156e8a196e337
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=517f6aa5264c369da2fbcc78245156e8a196e337

Author: Austin English <austinenglish at gmail.com>
Date:   Wed Feb  9 09:59:46 2011 -0800

d3dx9_36: Make sure return values are used (LLVM/Clang).

---

 dlls/d3dx9_36/tests/texture.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/d3dx9_36/tests/texture.c b/dlls/d3dx9_36/tests/texture.c
index 1f31d81..c575346 100644
--- a/dlls/d3dx9_36/tests/texture.c
+++ b/dlls/d3dx9_36/tests/texture.c
@@ -421,6 +421,8 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
     if (texture)
     {
         hr = IDirect3DTexture9_GetLevelDesc(texture, 0, &desc);
+        ok(hr == D3D_OK, "GetLevelDesc returned %#x, expected %#x\n", hr, D3D_OK);
+        ok(desc.Format == D3DFMT_A8R8G8B8, "Returned format %u, expected %u\n", desc.Format, D3DFMT_A8R8G8B8);
 
         ok(desc.Width == 256, "Returned width %d, expected %d\n", desc.Width, 256);
         ok(desc.Height == 256, "Returned height %d, expected %d\n", desc.Height, 256);
@@ -435,6 +437,8 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
     if (texture)
     {
         hr = IDirect3DTexture9_GetLevelDesc(texture, 0, &desc);
+        ok(hr == D3D_OK, "GetLevelDesc returned %#x, expected %#x\n", hr, D3D_OK);
+        ok(desc.Format == D3DFMT_A8R8G8B8, "Returned format %u, expected %u\n", desc.Format, D3DFMT_A8R8G8B8);
 
         ok(desc.Width == 1, "Returned width %d, expected %d\n", desc.Width, 1);
         ok(desc.Height == 1, "Returned height %d, expected %d\n", desc.Height, 1);
@@ -456,6 +460,8 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
         if (texture)
         {
             hr = IDirect3DTexture9_GetLevelDesc(texture, 0, &desc);
+            ok(hr == D3D_OK, "GetLevelDesc returned %#x, expected %#x\n", hr, D3D_OK);
+            ok(desc.Format == D3DFMT_A8R8G8B8, "Returned format %u, expected %u\n", desc.Format, D3DFMT_A8R8G8B8);
 
             /* Conditional NPOT may create a texture with different dimensions, so allow those
                situations instead of returning a fail */
@@ -542,6 +548,7 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
     if (texture)
     {
         hr = IDirect3DTexture9_GetLevelDesc(texture, 0, &desc);
+        ok(hr == D3D_OK, "GetLevelDesc returned %#x, expected %#x\n", hr, D3D_OK);
         ok(desc.Format == D3DFMT_A8R8G8B8, "Returned format %u, expected %u\n", desc.Format, D3DFMT_A8R8G8B8);
 
         IDirect3DTexture9_Release(texture);
@@ -554,6 +561,7 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
     if (texture)
     {
         hr = IDirect3DTexture9_GetLevelDesc(texture, 0, &desc);
+        ok(hr == D3D_OK, "GetLevelDesc returned %#x, expected %#x\n", hr, D3D_OK);
         ok(desc.Format == D3DFMT_A8R8G8B8, "Returned format %u, expected %u\n", desc.Format, D3DFMT_A8R8G8B8);
 
         IDirect3DTexture9_Release(texture);




More information about the wine-cvs mailing list