[PATCH v2 7/8] d2d1/tests: Reenable tests formerly causing infinite loop

Stefan Brüns stefan.bruens at rwth-aachen.de
Fri Jan 7 14:44:02 CST 2022


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51139
Signed-off-by: Stefan Brüns <stefan.bruens at rwth-aachen.de>
---
 dlls/d2d1/tests/d2d1.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c
index 9f2c432c55e..5efa87bd89c 100644
--- a/dlls/d2d1/tests/d2d1.c
+++ b/dlls/d2d1/tests/d2d1.c
@@ -3898,7 +3898,6 @@ static void test_path_geometry(BOOL d3d11)
     hr = ID2D1PathGeometry_Open(geometry, &sink);
     ok(SUCCEEDED(hr), "Failed to open geometry sink, hr %#x.\n", hr);
 
-#if 0
     set_point(&point, 20.0f,   80.0f);
     ID2D1GeometrySink_BeginFigure(sink, point, D2D1_FIGURE_BEGIN_FILLED);
     line_to(sink, 40.0f, 100.0f);
@@ -3910,7 +3909,6 @@ static void test_path_geometry(BOOL d3d11)
     line_to(sink, 60.0f, 40.0f);
     quadratic_to(sink, 95.0f, 40.0f, 80.0f, 20.0f);
     ID2D1GeometrySink_EndFigure(sink, D2D1_FIGURE_END_OPEN);
-#endif
 
     set_point(&point, 120.0f,  180.0f);
     ID2D1GeometrySink_BeginFigure(sink, point, D2D1_FIGURE_BEGIN_FILLED);
@@ -3931,11 +3929,7 @@ static void test_path_geometry(BOOL d3d11)
     set_rect(&rect, 0.0f, 0.0f, 0.0f, 0.0f);
     hr = ID2D1PathGeometry_GetBounds(geometry, NULL, &rect);
     ok(SUCCEEDED(hr), "Failed to get geometry bounds, hr %#x.\n", hr);
-#if 0
     match = compare_rect(&rect, 20.0f, 20.0f, 180.0f, 180.0f, 0);
-#else
-    match = compare_rect(&rect, 115.5f, 110.0f, 180.0f, 180.0f, 1);
-#endif
     ok(match, "Got unexpected rectangle {%.8e, %.8e, %.8e, %.8e}.\n",
             rect.left, rect.top, rect.right, rect.bottom);
 
@@ -3943,11 +3937,7 @@ static void test_path_geometry(BOOL d3d11)
     hr = ID2D1PathGeometry_Simplify(geometry, D2D1_GEOMETRY_SIMPLIFICATION_OPTION_CUBICS_AND_LINES,
             NULL, 0.0f, &simplify_sink.ID2D1SimplifiedGeometrySink_iface);
     ok(SUCCEEDED(hr), "Failed to simplify geometry, hr %#x.\n", hr);
-#if 0
     geometry_sink_check(&simplify_sink, D2D1_FILL_MODE_ALTERNATE, 4, &expected_figures[29], 1);
-#else
-    geometry_sink_check(&simplify_sink, D2D1_FILL_MODE_ALTERNATE, 2, &expected_figures[31], 1);
-#endif
     geometry_sink_cleanup(&simplify_sink);
 
     ID2D1PathGeometry_Release(geometry);
-- 
2.34.1




More information about the wine-devel mailing list