GNOME Bugzilla – Bug 766714
fails to run _xep, _search_lat_long in test_gcglib
Last modified: 2016-10-13 17:18:02 UTC
This would be a kind of question, rather than a bug report. (but, it could be)
When I run 'test-gcglib', it fails in two test functions which are modified by a commit, 'a90ea49 test-gcglib: Conform to reality', but I can't guess what is wrong in my side. In my local environment, the test is passed only if I revert the commit.
What should I check to get right test result?
Here are the results.
ERROR:test-gcglib.c:207:test_xep: assertion failed (geocode_location_get_latitude (loc) == 51.2371416): (51.2371333 == 51.2371416)
ERROR:test-gcglib.c:341:test_search_lat_long: assertion failed (geocode_place_get_name (place) == "Santa Maria Del Rio, Santa Mar\303\255a del Rio"): ("Santa Maria Del Rio, Santa Mar\303\255a del R\303\255o" == "Santa Maria Del Rio, Santa Mar\303\255a del Rio")
The failure is because the tests run queries against the online Nominatim instance, whose database is regularly updated, which can sometimes change the test results. When that happens, the tests need to be updated.
This is fixed by the patches in bug #756311, which allow the tests to be run offline against saved results.
*** This bug has been marked as a duplicate of bug 756311 ***