=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: gdiplus/tests: Remove assertions in graphics tests.

Alexandre Julliard julliard at winehq.org
Wed Feb 12 13:44:37 CST 2014


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Feb 11 20:27:45 2014 +0100

gdiplus/tests: Remove assertions in graphics tests.

---

 dlls/gdiplus/tests/graphics.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c
index 2de456c..4d74081 100644
--- a/dlls/gdiplus/tests/graphics.c
+++ b/dlls/gdiplus/tests/graphics.c
@@ -20,7 +20,6 @@
  */
 
 #include <math.h>
-#include <assert.h>
 
 #include "objbase.h"
 #include "gdiplus.h"
@@ -60,7 +59,7 @@ static REAL units_to_pixels(REAL units, GpUnit unit, REAL dpi)
     case UnitMillimeter:
         return units * dpi / mm_per_inch;
     default:
-        assert(0);
+        ok(0, "Unsupported unit: %d\n", unit);
         return 0;
     }
 }
@@ -82,7 +81,7 @@ static REAL pixels_to_units(REAL pixels, GpUnit unit, REAL dpi)
     case UnitMillimeter:
         return pixels * mm_per_inch / dpi;
     default:
-        assert(0);
+        ok(0, "Unsupported unit: %d\n", unit);
         return 0;
     }
 }




More information about the wine-cvs mailing list