Merge lp:~gerboland/qtmir/tests-use-stack-instead-of-heap into lp:qtmir
| Status: | Merged |
|---|---|
| Approved by: | Daniel d'Andrada on 2016-06-23 |
| Approved revision: | 523 |
| Merged at revision: | 536 |
| Proposed branch: | lp:~gerboland/qtmir/tests-use-stack-instead-of-heap |
| Merge into: | lp:qtmir |
| Diff against target: |
513 lines (+73/-110) 1 file modified
tests/modules/ApplicationManager/application_manager_test.cpp (+73/-110) |
| To merge this branch: | bzr merge lp:~gerboland/qtmir/tests-use-stack-instead-of-heap |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Unity8 CI Bot | continuous-integration | Needs Fixing on 2016-06-23 | |
| Daniel d'Andrada (community) | Approve on 2016-06-23 | ||
| Andreas Pokorny (community) | 2016-06-22 | Approve on 2016-06-23 | |
|
Review via email:
|
|||
Commit Message
Tests: AppManTest: use stack instead of heap when possible, better cleanup of resources
| Daniel d'Andrada (dandrader) wrote : | # |
The order of deletion is important. Session will kill itself with deleteLater() once it has no more surfaces.
unexpectedStopO
"""
delete surface;
qtApp.
"""
Surface goes away. Session sees that and calls deleteLater() on itself. We then call that sendPostedEvents() to force immediate processing of that deleteLater() call.
| Daniel d'Andrada (dandrader) wrote : | # |
Oh, and please also update the copyright header.
- 522. By Gerry Boland on 2016-06-23
-
Copyright
- 523. By Gerry Boland on 2016-06-23
-
Undo changes to tests which leaked.
| Gerry Boland (gerboland) wrote : | # |
> The order of deletion is important. Session will kill itself with
> deleteLater() once it has no more surfaces.
>
> unexpectedStopO
> (I think there are some others like that).
>
> """
> delete surface;
>
> qtApp.sendPoste
> """
>
> Surface goes away. Session sees that and calls deleteLater() on itself. We
> then call that sendPostedEvents() to force immediate processing of that
> deleteLater() call.
So I see. I've re-run under Valgrind and restored those tests it indicated I had made leak. Which wasn't all. Which surprised me!
I'll keep in mind that Session is deleting itself - I'm not so sure I like that idea. But, later.
What do you think about it now?
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:523
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/

FAILED: Continuous integration, rev:521 /unity8- jenkins. ubuntu. com/job/ lp-qtmir- ci/287/ /unity8- jenkins. ubuntu. com/job/ build/2114/ console /unity8- jenkins. ubuntu. com/job/ build-0- fetch/2142 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 2052 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 2052 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= yakkety/ 2052 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 2043 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 2043/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 2043 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 2043/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 2043/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 2043 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 2043/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 2043 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 2043/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 2043 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 2043/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 2043/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 2043/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= yakkety/ 2043 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= yakkety/ 2043/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /unity8- jenkins. ubuntu. com/job/ lp-qtmir- ci/287/ rebuild
https:/