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 695358 - Test suite fails if libphonenumber is not installed
Test suite fails if libphonenumber is not installed
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Contacts
3.8.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2013-03-07 13:39 UTC by Vadim Rutkovsky
Modified: 2013-09-14 16:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (9.84 KB, patch)
2013-03-07 13:51 UTC, Mathias Hasselmann (IRC: tbf)
committed Details | Review

Description Vadim Rutkovsky 2013-03-07 13:39:55 UTC
=================================================================
   evolution-data-server 3.7.92: tests/libebook/test-suite.log
=================================================================
 
# TOTAL: 12
# PASS:  11
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
 
.. contents:: :depth: 2
 
FAIL: test-ebook-phone-number
=============================

[snip]

/ebook-phone-number/country-code/for-region:
(/home/test/src/gnome/evolution-data-server/tests/libebook/.libs/lt-test-ebook-phone-number:19198): libebook-contacts-WARNING **: e_phone_number_get_country_code_for_region: The library was built without phone number support.

This issue is fixed and verified in openismus-work-error-args branch
Comment 1 Mathias Hasselmann (IRC: tbf) 2013-03-07 13:51:20 UTC
Created attachment 238292 [details] [review]
proposed patch
Comment 2 Milan Crha 2013-03-07 14:04:26 UTC
Review of attachment 238292 [details] [review]:

Basically no objection, just wait for a release-team approval (that's why accepted-commit_after_freeze).

Will you bump a soname version for this change? Strictly speaking you should, but as it's a new API, used only internally now, I think it should work even without it.

::: tests/libebook/test-ebook-phone-number.c
@@ +369,3 @@
+	g_assert (error != NULL);
+	g_assert (error->domain == E_PHONE_NUMBER_ERROR);
+	g_assert (error->code == E_PHONE_NUMBER_ERROR_NOT_IMPLEMENTED);

consider g_error_matches() as a replacement for the above three lines

@@ +394,3 @@
+	g_assert (error != NULL);
+	g_assert (error->domain == E_PHONE_NUMBER_ERROR);
+	g_assert (error->code == E_PHONE_NUMBER_ERROR_NOT_IMPLEMENTED);

similar here
Comment 3 Mathias Hasselmann (IRC: tbf) 2013-03-07 14:10:17 UTC
milan: did the separate steps so that the asserts directly tell me the issue, without the need of adding printf-statements during debugging. still now that i look it them, the domain and code checks rather should be g_assert_cmpint() checks.

added similar checks at other places. will update them in one go after merging this one.
Comment 4 Mathias Hasselmann (IRC: tbf) 2013-03-07 15:38:28 UTC
Comment on attachment 238292 [details] [review]
proposed patch

Got freeze break approval, merging to master.

https://mail.gnome.org/archives/release-team/2013-March/msg00063.html
https://mail.gnome.org/archives/release-team/2013-March/msg00064.html
Comment 5 Mathias Hasselmann (IRC: tbf) 2013-03-07 15:39:49 UTC
Marking resolved and also deleting the openismus-work-error-args branch.
Thank you for raising this issue.