Merge lp:~brandontschaefer/unity/lp.1102699-fix-unit-tests into lp:unity
Proposed by
Brandon Schaefer
Status: | Merged |
---|---|
Approved by: | Andrea Azzarone |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3066 |
Proposed branch: | lp:~brandontschaefer/unity/lp.1102699-fix-unit-tests |
Merge into: | lp:unity |
Diff against target: |
169 lines (+21/-21) 8 files modified
tests/test_launcher.cpp (+2/-2) tests/test_launcher_drag_window.cpp (+13/-13) tests/test_previews_application.cpp (+1/-1) tests/test_previews_generic.cpp (+1/-1) tests/test_previews_movie.cpp (+1/-1) tests/test_previews_music.cpp (+1/-1) tests/test_previews_social.cpp (+1/-1) tests/test_shortcut_controller.cpp (+1/-1) |
To merge this branch: | bzr merge lp:~brandontschaefer/unity/lp.1102699-fix-unit-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
Andrea Azzarone (community) | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+144625@code.launchpad.net |
Commit message
Fixes a bunch of base window leaks in the unit tests, which was causes a crash. This also fixes a shortcut controller crash.
Description of the change
=== Problem ===
Lots of nux::BaseWindows were being leaked and not being cleaned up. Some were lost in circular reference, but wasn't getting clean up for the view_window_list in nux, so some dead windows where being looked at when my test was faking mouse events. This lead to the crash...
=== Fix ===
You must put ALL nux::BaseWindows into a nux::ObjectPtr, otherwise problems.
=== Tests ===
This fixes crashing tests.
To post a comment you must log in.
Seems to fix the crash here. Btw code looks good!