Mir

Merge lp:~raof/mir/fix-all-the-CI into lp:mir

Proposed by Chris Halse Rogers
Status: Merged
Merged at revision: 2149
Proposed branch: lp:~raof/mir/fix-all-the-CI
Merge into: lp:mir
Diff against target: 31 lines (+5/-2)
2 files modified
src/client/mir_surface_api.cpp (+4/-2)
tests/acceptance-tests/test_client_library.cpp (+1/-0)
To merge this branch: bzr merge lp:~raof/mir/fix-all-the-CI
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Daniel van Vugt Approve
Mir development team Pending
Review via email: mp+244526@code.launchpad.net

Commit message

Fix two bugs that CI catches that sneaked in while we were manually landing. (LP: #1401364)

Description of the change

Fix the changes that broke CI while we were manually landing things.

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm not sure if Alan's test case is correct, but this branch is not passing it:
https://bugs.launchpad.net/mir/+bug/1401364/comments/5

Wait and see what Jenkins says I guess.

review: Needs Information
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Do you have a method for reproducing the original issue locally?

Revision history for this message
Chris Halse Rogers (raof) wrote :

This won't fix https://bugs.launchpad.net/mir/+bug/1401364/comments/5, but that doesn't break CI (as death tests never share a process with regular tests).

To reproduce the problem, disable gtest test discovery and enable valgrind.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Alright, using Chris' newer test case described in bug 1401364, I can reproduce the issue and verify this branch fixes it.

review: Approve
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
=== modified file 'src/client/mir_surface_api.cpp'
--- src/client/mir_surface_api.cpp 2014-12-09 03:14:55 +0000
+++ src/client/mir_surface_api.cpp 2014-12-12 01:35:39 +0000
@@ -83,11 +83,13 @@
83 params.buffer_usage = requested_specification->buffer_usage;83 params.buffer_usage = requested_specification->buffer_usage;
84 params.output_id = requested_specification->output_id;84 params.output_id = requested_specification->output_id;
8585
86 bool fullscreen_tmp = requested_specification->fullscreen;
87
86 auto shim_callback = new std::function<void(MirSurface*)>;88 auto shim_callback = new std::function<void(MirSurface*)>;
87 *shim_callback = [requested_specification, shim_callback, callback, context]89 *shim_callback = [fullscreen_tmp, shim_callback, callback, context]
88 (MirSurface* surface)90 (MirSurface* surface)
89 {91 {
90 if (requested_specification->fullscreen)92 if (fullscreen_tmp)
91 {93 {
92 mir_surface_set_state(surface, mir_surface_state_fullscreen);94 mir_surface_set_state(surface, mir_surface_state_fullscreen);
93 }95 }
9496
=== modified file 'tests/acceptance-tests/test_client_library.cpp'
--- tests/acceptance-tests/test_client_library.cpp 2014-12-11 02:43:01 +0000
+++ tests/acceptance-tests/test_client_library.cpp 2014-12-12 01:35:39 +0000
@@ -201,6 +201,7 @@
201 EXPECT_EQ(request_buffer_usage, response_params.buffer_usage);201 EXPECT_EQ(request_buffer_usage, response_params.buffer_usage);
202202
203 mir_wait_for(mir_surface_release( surface, release_surface_callback, this));203 mir_wait_for(mir_surface_release( surface, release_surface_callback, this));
204 mir_connection_release(connection);
204}205}
205206
206TEST_F(ClientLibrary, can_set_surface_types)207TEST_F(ClientLibrary, can_set_surface_types)

Subscribers

People subscribed via source and target branches