test: Use smaller boxes in region_contains_test()
authorSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 13 Sep 2011 03:17:39 +0000 (23:17 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 19 Sep 2011 10:15:14 +0000 (06:15 -0400)
commitf9faf4df440366ed36b197dc09b1c2b51af3387b
tree0aeb47f4f9a2153076b69ad82c20acfe2909739b
parent9623b478f7e872af36ca77af5cc9e85f5ea132cf
test: Use smaller boxes in region_contains_test()

The boxes used region_contains_test() sometimes overflow causing

    *** BUG ***
    In pixman_region32_union_rect: Invalid rectangle passed
    Set a breakpoint on '_pixman_log_error' to debug

messages to be printed when pixman is compiled with DEBUG. Fix this by
dividing the x, y, w, h coordinates by 4 to prevent overflows.
test/region-contains-test.c