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

Alexandre Julliard julliard at winehq.org
Tue Feb 15 11:29:27 CST 2011


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

Author: Austin English <austinenglish at gmail.com>
Date:   Thu Feb 10 16:45:10 2011 -0800

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

---

 dlls/oleaut32/tests/vartest.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index a1a3ec5..c14dd91 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -861,6 +861,7 @@ static void test_VariantCopyInd(void)
   VariantInit(&vDst);
 
   hres = VariantCopyInd(&vDst, &vSrc);
+  ok(hres == S_OK, "VariantCopyInd failed: 0x%08x\n", hres);
   ok(V_VT(&vDst) == VT_UI1 && V_UI1(&vDst) == 0x77,
      "CopyInd(deref): expected dst vt = VT_UI1, val 0x77, got %d|0x%X, 0x%2X\n",
       V_VT(&vDst) & VT_TYPEMASK, V_VT(&vDst) & ~VT_TYPEMASK, V_UI1(&vDst));
@@ -873,6 +874,7 @@ static void test_VariantCopyInd(void)
   VariantInit(&vDst);
 
   hres = VariantCopyInd(&vDst, &vSrc);
+  ok(hres == S_OK, "VariantCopyInd failed: 0x%08x\n", hres);
   ok(V_VT(&vDst) == VT_UI1 && V_UI1(&vDst) == 0x88,
      "CopyInd(deref): expected dst vt = VT_UI1, val 0x77, got %d|0x%X, 0x%2X\n",
       V_VT(&vDst) & VT_TYPEMASK, V_VT(&vDst) & ~VT_TYPEMASK, V_UI1(&vDst));




More information about the wine-cvs mailing list