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
1=== modified file 'src/client/mir_surface_api.cpp'
2--- src/client/mir_surface_api.cpp 2014-12-09 03:14:55 +0000
3+++ src/client/mir_surface_api.cpp 2014-12-12 01:35:39 +0000
4@@ -83,11 +83,13 @@
5 params.buffer_usage = requested_specification->buffer_usage;
6 params.output_id = requested_specification->output_id;
7
8+ bool fullscreen_tmp = requested_specification->fullscreen;
9+
10 auto shim_callback = new std::function<void(MirSurface*)>;
11- *shim_callback = [requested_specification, shim_callback, callback, context]
12+ *shim_callback = [fullscreen_tmp, shim_callback, callback, context]
13 (MirSurface* surface)
14 {
15- if (requested_specification->fullscreen)
16+ if (fullscreen_tmp)
17 {
18 mir_surface_set_state(surface, mir_surface_state_fullscreen);
19 }
20
21=== modified file 'tests/acceptance-tests/test_client_library.cpp'
22--- tests/acceptance-tests/test_client_library.cpp 2014-12-11 02:43:01 +0000
23+++ tests/acceptance-tests/test_client_library.cpp 2014-12-12 01:35:39 +0000
24@@ -201,6 +201,7 @@
25 EXPECT_EQ(request_buffer_usage, response_params.buffer_usage);
26
27 mir_wait_for(mir_surface_release( surface, release_surface_callback, this));
28+ mir_connection_release(connection);
29 }
30
31 TEST_F(ClientLibrary, can_set_surface_types)

Subscribers

People subscribed via source and target branches