gdiplus/tests: Remove assertions in graphics tests

André Hentschel nerv at dawncrow.de
Tue Feb 11 13:27:45 CST 2014


---
 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;
     }
 }
-- 
1.8.1.2




More information about the wine-patches mailing list