After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 737857 - make check fails
make check fails
Status: RESOLVED FIXED
Product: geocode-glib
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: geocode-glib maintainer(s)
geocode-glib maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-10-03 20:22 UTC by Kjartan Maraas
Modified: 2015-06-09 12:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test-gcglib: Fix test for "Grand Canyon" from Europe (1.42 KB, patch)
2015-05-17 12:58 UTC, Bastien Nocera
committed Details | Review
test-gcglib: Fix "Santa Maria Del Rio" searches (1.54 KB, patch)
2015-05-17 12:58 UTC, Bastien Nocera
committed Details | Review
test-gcglib: Fix pub searches (1.37 KB, patch)
2015-05-17 12:58 UTC, Bastien Nocera
committed Details | Review

Description Kjartan Maraas 2014-10-03 20:22:37 UTC
TEST: test-geouri... (pid=8746)
  /geouri/parse_uri:                                                   OK
  /geouri/valid_uri:                                                   OK
  /geouri/convert_uri:                                                 OK
PASS: test-geouri
TEST: test-gcglib... (pid=8766)
  /geocode/resolve_json:                                               OK
  /geocode/search_json:                                                OK
  /geocode/reverse:                                                    Got geocode answer:
	The Astolat @ 51,237036, -0,589483
OK
  /geocode/pub:                                                        **
ERROR:test-gcglib.c:221:test_pub: assertion failed (geocode_location_get_latitude (loc) == 51.2371416): (51,2368852 == 51,2371416)
FAIL
GTester: last random seed: R02S78fff29aeb01a9c5c63a72ea6650b0fa
/bin/sh: line 1:  8745 Terminert               gtester --verbose test-geouri test-gcglib
Makefile:882: recipe for target 'test' failed
make[3]: *** [test] Error 143
make[3]: Leaving directory '/home/kmaraas/src/gnome/geocode-glib/geocode-glib'
Makefile:744: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 2
make[2]: Leaving directory '/home/kmaraas/src/gnome/geocode-glib/geocode-glib'
Makefile:746: recipe for target 'check' failed
make[1]: *** [check] Error 2
make[1]: Leaving directory '/home/kmaraas/src/gnome/geocode-glib/geocode-glib'
Makefile:517: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
*** Error during phase check of geocode-glib: ########## Error running make  check *** [29/247]
Comment 1 Kjartan Maraas 2015-05-17 07:57:38 UTC
Still seeing this in git master.
Comment 2 Bastien Nocera 2015-05-17 12:25:50 UTC
I get:
ERROR:test-gcglib.c:240:test_pub: assertion failed (geocode_location_get_longitude (loc) == -0.5912356): (-0.5912357 == -0.5912356)

Does this happen to you with a specific locale? eg. do you see your problem or mine with LC_ALL=en_GB.UTF-8 ?
Comment 3 Bastien Nocera 2015-05-17 12:58:23 UTC
Created attachment 303478 [details] [review]
test-gcglib: Fix test for "Grand Canyon" from Europe

First hit for "Grand Canyon" is "Grand Canyon, Ukraine":
http://www.openstreetmap.org/relation/1493795
instead of the North American one.
Comment 4 Bastien Nocera 2015-05-17 12:58:28 UTC
Created attachment 303479 [details] [review]
test-gcglib: Fix "Santa Maria Del Rio" searches

The results are more precise now.
Comment 5 Bastien Nocera 2015-05-17 12:58:33 UTC
Created attachment 303480 [details] [review]
test-gcglib: Fix pub searches

There are multiple "Old Palace Road" objects in the database now.
Comment 6 Bastien Nocera 2015-05-17 13:00:37 UTC
Does this fix it? Just like the old Yahoo service, the results can be different depending on the location of the query (the IP really) and the language.
Comment 7 Jonas Danielsson 2015-05-18 05:50:44 UTC
Yeah, the tests are a bit shaky. I often have to fix something up to be able to make a release. Having the tests depend on what is in the OSM database at this time is not really an optimal solution. Maybe it would be possible to use the API test server as a target?

The check tests passed for me, both in the 3.17.1 and the 3.16.2 releases. I must invoke the tests with LANG=en.US to make it work though.

Thanks for fixing things up Bastien!
Comment 8 Jonas Danielsson 2015-05-18 05:51:45 UTC
Review of attachment 303478 [details] [review]:

Looks good.

::: geocode-glib/test-gcglib.c
@@ +376,2 @@
 		place = res->data;
+		g_test_message ("Location: %s", types[i].search_string);

Is this meant to be here? Or a left-over debug message?
Comment 9 Jonas Danielsson 2015-05-18 05:52:12 UTC
Review of attachment 303479 [details] [review]:

Looks good!
Comment 10 Jonas Danielsson 2015-05-18 05:52:39 UTC
Review of attachment 303480 [details] [review]:

Looks good.
Comment 11 Bastien Nocera 2015-06-09 12:25:08 UTC
Attachment 303478 [details] pushed as 39b3cfc - test-gcglib: Fix test for "Grand Canyon" from Europe
Attachment 303479 [details] pushed as 118ac86 - test-gcglib: Fix "Santa Maria Del Rio" searches
Attachment 303480 [details] pushed as 22f47c3 - test-gcglib: Fix pub searches