ningking1986 / geotop

Automatically exported from code.google.com/p/geotop
0 stars 0 forks source link

relax file check #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the test suite (command python ./tests/test_sample_run/test_runner.py) 
on a machine with a recent version of glib (e.g. @2.36.4)

What is the expected output? What do you see instead?

The test which compare the two files fail:
tests/test_sample_run/example/results/output_maps/SWEDENSITYN0001.asc 
tests/test_sample_run/example/output_maps/SWEDENSITYN0001.asc

for instance:
>-9999.000 -9999.000 -9999.000 -9999.000 -nan -9999.000 -9999.000 -9999.000 
-9999.000 -9999.000 -9999.000 -nan -nan
<-9999.000 -9999.000 -9999.000 -9999.000 nan -9999.000 -9999.000 -9999.000 
-9999.000 -9999.000 -9999.000 nan nan

The difference is only due to the new glib which prints whether or not it is a 
nan or a negative nan.

Please use labels and text to provide additional information.

For the purpose of these tests, this difference could be ignored, could you 
relax the test so that nan and -nan are the same thing?

Original issue reported on code.google.com by angl...@gmail.com on 1 Oct 2013 at 8:37

GoogleCodeExporter commented 9 years ago

Original comment by angl...@gmail.com on 1 Oct 2013 at 8:39

GoogleCodeExporter commented 9 years ago
Are you sure about the glibc version? AFAIK the latest release is 2.18.
I've tried with 2.17 (shipped with ubuntu 13.04) and I don't see any issue.

Original comment by antonio....@gmail.com on 3 Oct 2013 at 3:02

GoogleCodeExporter commented 9 years ago
Indeed I'm not sure about the version, I have indicated the version I used to 
reproduce the issue, I found this bug 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45762

Anyway, it works now with the new version of test_runner.py and after an update 
of the pandas library

Original comment by angl...@gmail.com on 6 Oct 2013 at 5:08