summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@redhat.com>2009-07-08 00:08:49 -0400
committerSøren Sandmann Pedersen <sandmann@redhat.com>2009-07-08 00:08:49 -0400
commit4e41905bacbf533740e999ba79e0620f358c0597 (patch)
treef6e07d04cc2fe4222cb01fdc8cfe9219e0f93244 /test
parent967ff0bdc7f46806b7a6d16332ad39cf2c1f01c1 (diff)
Eliminate empty rectangles in pixman_region_init_rects().
Otherwise they show up in the validated regions.
Diffstat (limited to 'test')
-rw-r--r--test/region-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/region-test.c b/test/region-test.c
index 3e00dec7..26e5338d 100644
--- a/test/region-test.c
+++ b/test/region-test.c
@@ -34,10 +34,15 @@ main ()
pixman_region32_init_rects (&r1, boxes, 2);
b = pixman_region32_rectangles (&r1, &i);
+
+ assert (i == 1);
+
while (--i)
{
assert (b[i].x1 < b[i].x2);
assert (b[i].y1 < b[i].y2);
}
+
+ return 0;
}