[postgis-devel] Cunit and lwerror

Paul Ramsey pramsey at cleverelephant.ca
Sun Jan 24 08:25:09 PST 2010


You could override the default handlers in your unit tests and provide
handlers that returned the strings instead of outputting them on
stderr?

P

On Sun, Jan 24, 2010 at 6:33 AM, Olivier Courtin
<olivier.courtin at oslandia.com> wrote:
> Hi,
>
> I began to use Cunit with PostGIS, and i'm not able to deal
> with lwerror uses cases, for example something like that:
>
> CU_ASSERT_STRING_EQUAL(
>   "geometry contains non-closed rings",
>   lwgeom_from_ewkt("POLYGON((0 0 0,0 1 0,1 1 0,0 1 0))", PARSER_CHECK_NONE)
> );
>
>
> Any tips, or it's really not possible, and we have to use 'old'
> regress psql tests to do do ?
>
>
> Tks in advance,
>
> --
> Olivier
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list