From 750088f01cdfaa0fe03adaf647dd8ad892707410 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 13 Jun 2023 19:03:27 -0400 Subject: [PATCH] Be less demanding in the get_point test When looking for discontinuities, there is no need to check for epsilons. As we move close to the end of one contour / the beginning of the next, the path length distance between the two points will get arbitrarily small, so we can just check that the distance between the points is more than twice that. This makes spurious failures of the /path/get_point test go away. --- testsuite/gsk/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/gsk/path.c b/testsuite/gsk/path.c index e4eefff634..042c18775c 100644 --- a/testsuite/gsk/path.c +++ b/testsuite/gsk/path.c @@ -782,7 +782,7 @@ test_get_point (void) &point, NULL); - if (graphene_point_distance (&last_point, &point, NULL, NULL) > offset - last_offset + tolerance) + if (graphene_point_distance (&last_point, &point, NULL, NULL) > 2 * (offset - last_offset)) { n_discontinuities++; g_assert_cmpint (n_discontinuities, <, max_contours);