[PATCH xrandr-utils 4/6] Add unit test suite and a basic test of the geometry structs.

Gaetan Nadon memsize at videotron.ca
Thu Dec 22 16:47:38 PST 2011


On 11-12-21 09:47 PM, Bryce Harrington wrote:
> +static void geometry_rectangle(void)
> +{
> +    XRURectangle r;

The 'make check' target fails which causes 'make distcheck' to fail.

geometry.c: In function ‘geometry_rectangle’:
geometry.c:66:5: error: unknown type name ‘XRURectangle’

I could not find this defined anywhere.
The module configures ok, so I assume all dependencies are met.

> +    r.x = r.y = 0;
> +    r.width = 640;
> +    r.height = 480;
> +
> +    assert(r.x == 0);
> +    assert(r.y == 0);
> +    assert(r.width == 640);
> +    assert(r.height == 480);
> +}
> +



More information about the xorg-devel mailing list