Mir

Merge lp:~kdub/mir/fix-1270685 into lp:mir

Proposed by Kevin DuBois
Status: Merged
Approved by: Kevin DuBois
Approved revision: no longer in the source branch.
Merged at revision: 1373
Proposed branch: lp:~kdub/mir/fix-1270685
Merge into: lp:mir
Diff against target: 15 lines (+3/-2)
1 file modified
tests/integration-tests/graphics/android/test_internal_client.cpp (+3/-2)
To merge this branch: bzr merge lp:~kdub/mir/fix-1270685
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+205053@code.launchpad.net

Commit message

fix a test bug in AndroidInternalClient.internal_client_creation_and_use which caused the integration tests to hang on the nexus 10 only.

fixes: LP: #1270685

Description of the change

fix a test bug in AndroidInternalClient.internal_client_creation_and_use which caused the integration tests to hang on the nexus 10 only.

fixes: LP: #1270685

The nexus 10 driver would request 3 buffers before rendering the first frame, which was causing the test hang because the compositor was not consuming any buffers in this test. The other drivers would not request as many buffers, so they weren't affected. The fix was setting the internal surface to swapinterval 0 in the test.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

OK

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/integration-tests/graphics/android/test_internal_client.cpp'
2--- tests/integration-tests/graphics/android/test_internal_client.cpp 2014-01-13 06:12:33 +0000
3+++ tests/integration-tests/graphics/android/test_internal_client.cpp 2014-02-05 22:00:24 +0000
4@@ -98,8 +98,9 @@
5 auto ss = std::make_shared<ms::SurfaceStack>(surface_allocator, stub_input_registrar, scene_report);
6 auto surface_controller = std::make_shared<ms::SurfaceController>(ss);
7 auto surface_source = std::make_shared<ms::SurfaceSource>(surface_controller, std::make_shared<mtd::NullSurfaceConfigurator>());
8- auto mir_surface = as_internal_surface(
9- surface_source->create_surface(nullptr, params, id, std::shared_ptr<mf::EventSink>()));
10+ auto surface = surface_source->create_surface(nullptr, params, id, std::shared_ptr<mf::EventSink>());
11+ surface->allow_framedropping(true);
12+ auto mir_surface = as_internal_surface(surface);
13
14 auto options = std::shared_ptr<mo::ProgramOption>();
15 auto report = std::shared_ptr<mg::NullDisplayReport>();

Subscribers

People subscribed via source and target branches