diff options
author | Søren Sandmann Pedersen <sandmann@redhat.com> | 2009-07-08 00:08:49 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@redhat.com> | 2009-07-08 00:08:49 -0400 |
commit | 4e41905bacbf533740e999ba79e0620f358c0597 (patch) | |
tree | f6e07d04cc2fe4222cb01fdc8cfe9219e0f93244 /test | |
parent | 967ff0bdc7f46806b7a6d16332ad39cf2c1f01c1 (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.c | 5 |
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; } |