[postgis-devel] 1.1.0 closed - Release on 21 - call for tests

Mark Cave-Ayland m.cave-ayland at webbased.co.uk
Sun Dec 18 09:13:41 PST 2005

Hi everyone,

OK having looked into this, it appears that MingW has some sort of buffering
problem when the output from psql is piped into other programs. I seem to
get random failures within the tests as it seems that sometimes the stdout
and sterr become 'out of sync' causing the tests to only complete partially.

I've managed to get the regression tests going under MingW with the attached
patch - by directly piping the output from psql into a file without feeding
into grep/sed, the problem seems to go away. I've also added a "grep -v
'^$'" which stops the Windows CR/LF pair causing two newlines to appear at
the end of each line which again prevents the tests from succeeding. This
patch now gives me the following results from MingW:

$ make test
make -C lwgeom 
make[1]: Entering directory `/home/mca/postgis/postgis-cvs/lwgeom'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mca/postgis/postgis-cvs/lwgeom'
make -C regress test
make[1]: Entering directory `/home/mca/postgis/postgis-cvs/regress'

 PostgreSQL 8.1.0 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2

 Postgis 1.1.0
 - 2005-12-18 10:29:48

   GEOS: 2.2.1-CAPI-1.0.1


   PROJ: Rel. 4.4.9, 29 Oct 2004

Running tests

           regress: Failed (diff /tmp/regress_regress_diff_3672)
     regress_index: Ok.
    lwgeom_regress: Ok.
       regress_lrs: Ok.
       removepoint: Ok.
          setpoint: Ok.
       regress_ogc: Failed (diff /tmp/regress_regress_ogc_diff_3672)
    regress_bdpoly: Ok.
      regress_proj: Ok.

Run tests: 9
Successful: 7
Failed: 2
make[1]: Leaving directory `/home/mca/postgis/postgis-cvs/regress'

mca at IBM-SPARKS ~/postgis/postgis-cvs
$ cat /tmp/regress_regress_diff_3672 
< 48|MULTIPOINT(-1 -2 -3,5.4 6.6 7.77,-5.4 -6.6 -7.77,1000000 1e-06
-1000000,-1.3e-06 -1.4e-05 0)
> 48|MULTIPOINT(-1 -2 -3,5.4 6.6 7.77,-5.4 -6.6 -7.77,1000000 1e-006
-1000000,-1.3e-006 -1.4e-005 0)
< 62|POINT(inf 0)
< 63|POINT(-inf 0)
> 62|POINT(1.#INF 0)
> 63|POINT(-1.#INF 0)

mca at IBM-SPARKS ~/postgis/postgis-cvs
$ cat /tmp/regress_regress_ogc_diff_3672 
< buffer|POLYGON((1 0,0.70710678120242 -0.70710678117067,4.49e-11
-1,-0.70710678113893 -0.70710678123417,-1 -8.979e-11,-0.70710678126591
0.70710678110718,-1.3469e-10 1,0.70710678107543 0.70710678129766,1 0))
> buffer|POLYGON((1 0,0.70710678120242 -0.70710678117067,4.49e-011
-1,-0.70710678113893 -0.70710678123417,-1 -8.979e-011,-0.70710678126591
0.70710678110718,-1.3469e-010 1,0.70710678107543 0.70710678129766,1 0))

Kind regards,


WebBased Ltd
17 Research Way

T: +44 (0)1752 797131
F: +44 (0)1752 791023


This email and any attachments are confidential to the intended recipient
and may also be privileged. If you are not the intended recipient please
delete it from your system and notify the sender. You should not copy it or
use it for any purpose nor disclose or distribute its contents to any other
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_test.diff
Type: application/octet-stream
Size: 968 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20051218/688d3199/attachment.obj>

More information about the postgis-devel mailing list