From 72b35a32fd03e8c8f8fd118bbfa1f499a727fa90 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 19 Dec 2023 18:45:43 +0100 Subject: [PATCH] testsuite: Fix corner case when testing repeats When we test repeat nodes, make sure we round the size of the original node up to an integer. The reference image for the node is a rounded up, so when we generate a new reference image we cannot deal with anything else. Fixes huge-width test with --repeat. --- testsuite/gsk/compare-render.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testsuite/gsk/compare-render.c b/testsuite/gsk/compare-render.c index 4e55148e58..ea90aa9e0c 100644 --- a/testsuite/gsk/compare-render.c +++ b/testsuite/gsk/compare-render.c @@ -353,6 +353,9 @@ main (int argc, char **argv) exit (77); } + node_bounds.size.width = ceil (node_bounds.size.width); + node_bounds.size.height = ceil (node_bounds.size.height); + bounds.origin.x = 0.; bounds.origin.y = 0.; bounds.size.width = 2 * node_bounds.size.width;