Summary: | TP_CONTACT_FEATURE_LOCATION repeatedly prepared for contacts who have no location | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Will Thompson <will> |
Component: | tp-glib | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | git master | ||
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.collabora.com/git/user/wjt/telepathy-glib.git/log/?h=fd.o-39377-repeated-location-requests | ||
Whiteboard: | review+ | ||
i915 platform: | i915 features: |
Description
Will Thompson
2011-07-19 08:24:28 UTC
I tweaked test_by_handle_again() to see which other features have this issue. - TpContactFeature feature = TP_CONTACT_FEATURE_ALIAS; + TpContactFeature features[] = { + TP_CONTACT_FEATURE_ALIAS, + // TP_CONTACT_FEATURE_AVATAR_TOKEN, + TP_CONTACT_FEATURE_PRESENCE, + // TP_CONTACT_FEATURE_LOCATION, + // TP_CONTACT_FEATURE_CAPABILITIES, + // TP_CONTACT_FEATURE_AVATAR_DATA, + // TP_CONTACT_FEATURE_CONTACT_INFO, + TP_CONTACT_FEATURE_CLIENT_TYPES, + TP_CONTACT_FEATURE_SUBSCRIPTION_STATES, + TP_CONTACT_FEATURE_CONTACT_GROUPS + }; Uncommenting any one of the commented features above makes the test fail. In some cases this could be due to misimplementation of the test CM—I haven't checked. Here's a branch which fixes this for Location on the fast path, and removes the slow path for Location. I haven't checked out the other ones yet. It also includes a hack to disable the test timeouts under gdb, and some crucial localization changes. Branch looks good. Epic hats off to you for writing a nice tp-glib test; they're such a pain in the ass. Just one point: + g_warning ("%s supports Location but not Contacts! Where did you find " Use the WARNING macro? but ++++++++++++++++++++++ (In reply to comment #3) > Branch looks good. Epic hats off to you for writing a nice tp-glib test; > they're such a pain in the ass. Oh there is *way* more where this came from. Fancy reviewing http://cgit.collabora.com/git/user/wjt/telepathy-glib.git/log/?h=fd.o-39377-repeated-location-requests-moar ? > Just one point: > > + g_warning ("%s supports Location but not Contacts! Where did you find " > > Use the WARNING macro? Good point. Haven't fixed this yet. #define TRACER_T "\nTracerPid:\t" // http://www.youtube.com/watch?v=SXmv8quf_xM I would change that to: /* http://www.youtube.com/watch?v=SXmv8quf_xM */ #define TRACER_T "\nTracerPid:\t" Otherwise branch looks good. Rebased onto the freshly-merged xclaesse/contacts-refactor (yum, conflicts), checked that that branch does indeed fix the one remaining feature that was broken (AVATAR_DATA), amended the test accordingly, fixed the review feedback, and merged the lot. That felt good. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.