Mir

Merge lp:~alan-griffiths/mir/fix-1335819 into lp:mir

Proposed by Alan Griffiths
Status: Merged
Merged at revision: 1738
Proposed branch: lp:~alan-griffiths/mir/fix-1335819
Merge into: lp:mir
Diff against target: 11 lines (+1/-0)
1 file modified
tests/acceptance-tests/test_client_surface_events.cpp (+1/-0)
To merge this branch: bzr merge lp:~alan-griffiths/mir/fix-1335819
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Alberto Aguirre (community) Approve
Andreas Pokorny (community) Approve
Cemil Azizoglu (community) Approve
Review via email: mp+224983@code.launchpad.net

Commit message

tests: Don't keep surfaces alive and try to destroy them after the server has been torn down

Description of the change

tests: Don't keep surfaces alive and try to destroy them after the server has been torn down

Alternative solution to https://code.launchpad.net/~afrantzis/mir/fix-1335819-surface-destruction-after-teardown/+merge/224981

To post a comment you must log in.
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

LGTM.

review: Approve
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

Voting for this one, looks a more natural or symmetric fix: the shared_ptr to scene_surface is acquired in Setup - and now released in TearDown.

review: Approve
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

Yep, simpler is better.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> Start 53: mir_integration_tests.SurfaceStackCompositor.*
> Build timed out (after 120 minutes). Marking the build as failed.

I don't recall other timeouts in mir_integration_tests.SurfaceStackCompositor - so assuming this is down to load on build hardware.

Re-approving

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (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_client_surface_events.cpp'
2--- tests/acceptance-tests/test_client_surface_events.cpp 2014-06-19 16:15:42 +0000
3+++ tests/acceptance-tests/test_client_surface_events.cpp 2014-06-30 11:41:25 +0000
4@@ -148,6 +148,7 @@
5 void TearDown() override
6 {
7 mir_surface_release_sync(other_surface);
8+ scene_surface.reset();
9 mir_surface_release_sync(surface);
10
11 BasicClientServerFixture::TearDown();

Subscribers

People subscribed via source and target branches