Merge lp:~charlesk/indicator-power/lp-1382861-fix-menu-creation-test into lp:indicator-power/15.10
Status: | Merged |
---|---|
Approved by: | dobey |
Approved revision: | 285 |
Merged at revision: | 285 |
Proposed branch: | lp:~charlesk/indicator-power/lp-1382861-fix-menu-creation-test |
Merge into: | lp:indicator-power/15.10 |
Diff against target: |
28 lines (+3/-1) 1 file modified
src/service.c (+3/-1) |
To merge this branch: | bzr merge lp:~charlesk/indicator-power/lp-1382861-fix-menu-creation-test |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
dobey (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+259180@code.launchpad.net |
Commit message
Fix timing issue that caused "Adjust brightness automatically" menuitem to sometimes not be shown.
Description of the change
== Description of Change
Fix timing issue that caused "Adjust brightness automatically" menuitem to sometimes not be shown.
The rebuild_now() method checked to see if menus were built by testing the session bus pointer for NULL because, in earlier versions, menus were created and exported when the session bus was acquired. Menu creation comes earlier now, so this test can give a false negative.
This patch replaces the NULL pointer test with a simple "menus_created" flag.
== Checklist
Are there any related MPs required for this MP to build/function as expected? Please list.
> Is your branch in sync with latest trunk? (e.g. bzr pull lp:trunk -> no changes)
Yes
> Did the code build without warnings?
Yes
> Did the tests run successfully?
Yes
> Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
> If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
> Did your component test plan pass? If on a device, what image number?
Yes, krillin r277
> Please list which manual tests are germane for the reviewer in this MR.
This was an infrequent timing bug with no manual tests other than confirming that the "Adjust brightness automatically" checkbox is present on the phone.
> Did you provide a link to this page https:/
Yes
PASSED: Continuous integration, rev:285 jenkins. qa.ubuntu. com/job/ indicator- power-ci/ 150/ jenkins. qa.ubuntu. com/job/ indicator- power-vivid- amd64-ci/ 9 jenkins. qa.ubuntu. com/job/ indicator- power-vivid- armhf-ci/ 9 jenkins. qa.ubuntu. com/job/ indicator- power-vivid- armhf-ci/ 9/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/indicator- power-ci/ 150/rebuild
http://