Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#303 closed enhancement (fixed)

Test results are language dependent

Reported by: jorgearevalo Owned by: pramsey
Priority: low Milestone: PostGIS 1.5.0
Component: postgis Version: master
Keywords: tests Cc:

Description

When I execute make check after building postgis, some test appear as failed test because my enviroment is in spanish, and the expected results are always in english.

I'd find useful to warn user of this unclear fact before executing test suite.

Change History (8)

comment:1 by mloskot, 15 years ago

It should be easy to fix by temporarily resetting shell locale to C

comment:2 by pramsey, 15 years ago

Can you test this Jorge? Since you have easy access to a machine that already has a non-'C' locale :)

comment:3 by jorgearevalo, 15 years ago

Sure thing!

$ export LANG=C
$ make check
(…)
Run tests: 46
Failed: 0
$ export LANG=es_ES.UTF-8

I don't know if it's the best way, but it works for me. Maybe I should detect the previous value of LANG and then restore it.

in reply to:  3 comment:4 by jorgearevalo, 15 years ago

Replying to jorgearevalo:

Sure thing!

$ export LANG=C
$ make check
(…)
Run tests: 46
Failed: 0
$ export LANG=es_ES.UTF-8

I don't know if it's the best way, but it works for me. Maybe I should detect the previous value of LANG and then restore it.

Sorry, it's

LC_ALL=C

and

LC_ALL=es_ES.UTF-8

Instead of LANG.

comment:5 by pramsey, 15 years ago

I added in a 'C' setting in run_test, can you check that trunk at r4815 works?

comment:6 by pramsey, 15 years ago

Resolution: fixed
Status: newclosed

comment:7 by mloskot, 15 years ago

I confirm nothing has got broken for me, everything works here. Thanks Paul!

comment:8 by jorgearevalo, 15 years ago

Thanks Paul! I have the lang problem solved. Now I have a test failed. The wmsservers test. I don't know if it's related. This is the diff (really difficult to find the differences in lines preceded by !):

*** wmsservers_expected	Mon Nov 16 22:32:26 2009
--- /tmp/pgis_reg_4598/test_42_out	Mon Nov 16 23:30:45 2009
***************
*** 7,40 ****
  POLYGON
  4326
  -500|AAAAAAMAAAABAAAAIcAQAAAAAAAAAAAAAAAAAADAEBOtBgEUar/I+Lg8aaYEwBBN8oYZrle/2H3i
! pq6pXMAQrJM63ivLv+HHOzmuaMTAESvsMzA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