Summary: | dbus-glib tests fail with modern GLib: tries to remove a GSource more than once | ||
---|---|---|---|
Product: | dbus | Reporter: | Simon McVittie <smcv> |
Component: | GLib | Assignee: | Simon McVittie <smcv> |
Status: | RESOLVED FIXED | QA Contact: | Rob Taylor <rob.taylor> |
Severity: | blocker | ||
Priority: | high | CC: | alban.crequy |
Version: | unspecified | Keywords: | patch |
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | review? | ||
i915 platform: | i915 features: | ||
Attachments: | tests: only remove sources that have not already been removed |
Description
Simon McVittie
2014-09-05 13:48:13 UTC
Created attachment 105802 [details] [review] tests: only remove sources that have not already been removed With modern GLib, misusing GSource provokes a critical warning, which is made fatal by our test framework. It is possible (indeed likely) that some or all of the cancel_exit_timeout() calls just before re-adding the timeout are redundant, but I didn't want to waste time on assessing that - easier to just do it every time. (In reply to comment #1) > Created attachment 105802 [details] [review] [review] > tests: only remove sources that have not already been removed > > With modern GLib, misusing GSource provokes a critical warning, which > is made fatal by our test framework. > > It is possible (indeed likely) that some or all of the > cancel_exit_timeout() calls just before re-adding the timeout are > redundant, but I didn't want to waste time on assessing that - easier > to just do it every time. The patch looks good to me. And the tests pass fine with the patch. Thanks for the review, fixed in git for 0.104 |
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.