Mir

Merge lp:~afrantzis/mir/fix-1445418-release-surfaces into lp:mir

Proposed by Alexandros Frantzis
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 2496
Proposed branch: lp:~afrantzis/mir/fix-1445418-release-surfaces
Merge into: lp:mir
Diff against target: 11 lines (+3/-0)
1 file modified
tests/acceptance-tests/test_custom_window_management.cpp (+3/-0)
To merge this branch: bzr merge lp:~afrantzis/mir/fix-1445418-release-surfaces
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Alan Griffiths Approve
Review via email: mp+256661@code.launchpad.net

Commit message

tests: Properly release MirSurfaces

Description of the change

tests: Properly release MirSurfaces

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

OK as a workaround but slightly changes the test. It would be more consistent to close the surfaces at the end of the test (and not in the test loop). Vis:

        received.wait_for(400ms);
    }

    for (auto const surface : client_surface)
        mir_surface_release_sync(surface);
}

review: Approve
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

> It would be more consistent to close the surfaces at the end of the test (and not in the test loop)

Changed.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Even more OK (but shouldn't be needed).

Unfortunately lp:1445473 isn't as tractable as I first hoped.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/acceptance-tests/test_custom_window_management.cpp'
2--- tests/acceptance-tests/test_custom_window_management.cpp 2015-04-15 15:40:55 +0000
3+++ tests/acceptance-tests/test_custom_window_management.cpp 2015-04-17 13:55:18 +0000
4@@ -268,4 +268,7 @@
5
6 received.wait_for(400ms);
7 }
8+
9+ for (auto const surface : client_surface)
10+ mir_surface_release_sync(surface);
11 }

Subscribers

People subscribed via source and target branches