Status: | Work in progress |
---|---|
Proposed branch: | lp:~kdub/mir/ci-test |
Merge into: | lp:mir/ubuntu |
Diff against target: |
295 lines (+91/-45) 11 files modified
CMakeLists.txt (+1/-1) cmake/MirCommon.cmake (+1/-0) debian/changelog (+13/-0) src/client/buffer_vault.cpp (+23/-22) src/client/buffer_vault.h (+1/-1) src/client/lttng/CMakeLists.txt (+9/-0) src/platform/options/default_configuration.cpp (+1/-1) src/server/report/lttng/CMakeLists.txt (+9/-0) tests/acceptance-tests/CMakeLists.txt (+1/-1) tests/unit-tests/client/test_buffer_vault.cpp (+22/-19) tools/valgrind_suppressions_libhybris (+10/-0) |
To merge this branch: | bzr merge lp:~kdub/mir/ci-test |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mir CI Bot | continuous-integration | Needs Fixing | |
Review via email: mp+301373@code.launchpad.net |
Commit message
Description of the change
MP just for CI testing, do not land
Mir CI Bot (mir-ci-bot) wrote : | # |
Mir CI Bot (mir-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:3529
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
https:/
Executed test runs:
Click here to trigger a rebuild:
https:/
- 3530. By Kevin DuBois
-
port over suppression files that we after some recent hybris changes
Mir CI Bot (mir-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:3529
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
https:/
Executed test runs:
Click here to trigger a rebuild:
https:/
- 3531. By Kevin DuBois
-
bzr add the new file when porting
Mir CI Bot (mir-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:3530
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
https:/
Executed test runs:
Click here to trigger a rebuild:
https:/
Mir CI Bot (mir-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:3531
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Unmerged revisions
- 3531. By Kevin DuBois
-
bzr add the new file when porting
- 3530. By Kevin DuBois
-
port over suppression files that we after some recent hybris changes
- 3529. By Kevin DuBois
-
include fixes for mir CI (LP: #1584601)
Preview Diff
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2016-07-19 16:34:44 +0000 | |||
3 | +++ CMakeLists.txt 2016-07-28 17:57:14 +0000 | |||
4 | @@ -29,7 +29,7 @@ | |||
5 | 29 | 29 | ||
6 | 30 | set(MIR_VERSION_MAJOR 0) | 30 | set(MIR_VERSION_MAJOR 0) |
7 | 31 | set(MIR_VERSION_MINOR 23) | 31 | set(MIR_VERSION_MINOR 23) |
9 | 32 | set(MIR_VERSION_PATCH 4) | 32 | set(MIR_VERSION_PATCH 5) |
10 | 33 | 33 | ||
11 | 34 | add_definitions(-DMIR_VERSION_MAJOR=${MIR_VERSION_MAJOR}) | 34 | add_definitions(-DMIR_VERSION_MAJOR=${MIR_VERSION_MAJOR}) |
12 | 35 | add_definitions(-DMIR_VERSION_MINOR=${MIR_VERSION_MINOR}) | 35 | add_definitions(-DMIR_VERSION_MINOR=${MIR_VERSION_MINOR}) |
13 | 36 | 36 | ||
14 | === modified file 'cmake/MirCommon.cmake' | |||
15 | --- cmake/MirCommon.cmake 2016-03-23 06:39:56 +0000 | |||
16 | +++ cmake/MirCommon.cmake 2016-07-28 17:57:14 +0000 | |||
17 | @@ -29,6 +29,7 @@ | |||
18 | 29 | set(VALGRIND_CMD ${VALGRIND_CMD} "--num-callers=128") | 29 | set(VALGRIND_CMD ${VALGRIND_CMD} "--num-callers=128") |
19 | 30 | set(VALGRIND_CMD ${VALGRIND_CMD} "--suppressions=${CMAKE_SOURCE_DIR}/tools/valgrind_suppressions_generic") | 30 | set(VALGRIND_CMD ${VALGRIND_CMD} "--suppressions=${CMAKE_SOURCE_DIR}/tools/valgrind_suppressions_generic") |
20 | 31 | set(VALGRIND_CMD ${VALGRIND_CMD} "--suppressions=${CMAKE_SOURCE_DIR}/tools/valgrind_suppressions_glibc_2.23") | 31 | set(VALGRIND_CMD ${VALGRIND_CMD} "--suppressions=${CMAKE_SOURCE_DIR}/tools/valgrind_suppressions_glibc_2.23") |
21 | 32 | set(VALGRIND_CMD ${VALGRIND_CMD} "--suppressions=${CMAKE_SOURCE_DIR}/tools/valgrind_suppressions_libhybris") | ||
22 | 32 | if (TARGET_ARCH STREQUAL "arm-linux-gnueabihf") | 33 | if (TARGET_ARCH STREQUAL "arm-linux-gnueabihf") |
23 | 33 | set(VALGRIND_CMD ${VALGRIND_CMD} "--suppressions=${CMAKE_SOURCE_DIR}/tools/valgrind_suppressions_armhf") | 34 | set(VALGRIND_CMD ${VALGRIND_CMD} "--suppressions=${CMAKE_SOURCE_DIR}/tools/valgrind_suppressions_armhf") |
24 | 34 | endif() | 35 | endif() |
25 | 35 | 36 | ||
26 | === modified file 'debian/changelog' | |||
27 | --- debian/changelog 2016-07-19 17:49:47 +0000 | |||
28 | +++ debian/changelog 2016-07-28 17:57:14 +0000 | |||
29 | @@ -1,3 +1,16 @@ | |||
30 | 1 | mir (0.23.5-0ubuntu1) UNRELEASED; urgency=medium | ||
31 | 2 | |||
32 | 3 | * New upstream release 0.23.5 (https://launchpad.net/mir/+milestone/0.23.5) | ||
33 | 4 | - ABI summary: | ||
34 | 5 | . No ABI changes in any libraries. | ||
35 | 6 | - Enhancements: | ||
36 | 7 | . Enable new buffer semantics (NBS) by default. | ||
37 | 8 | - Bugs fixed: | ||
38 | 9 | . OSK flickers and buttons are sometimes invisble (LP: #1590765) | ||
39 | 10 | . Mir fails to build in: COMPOSITOR_TRACE_CALL (LP: #1584601) | ||
40 | 11 | |||
41 | 12 | -- Kevin DuBois <kevin.dubois@canonical.com> Wed, 27 Jul 2016 08:36:06 -0400 | ||
42 | 13 | |||
43 | 1 | mir (0.23.4+16.10.20160719.1-0ubuntu1) yakkety; urgency=medium | 14 | mir (0.23.4+16.10.20160719.1-0ubuntu1) yakkety; urgency=medium |
44 | 2 | 15 | ||
45 | 3 | * New upstream release 0.23.4 (https://launchpad.net/mir/+milestone/0.23.4) | 16 | * New upstream release 0.23.4 (https://launchpad.net/mir/+milestone/0.23.4) |
46 | 4 | 17 | ||
47 | === modified file 'src/client/buffer_vault.cpp' | |||
48 | --- src/client/buffer_vault.cpp 2016-06-02 13:03:43 +0000 | |||
49 | +++ src/client/buffer_vault.cpp 2016-07-28 17:57:14 +0000 | |||
50 | @@ -139,8 +139,26 @@ | |||
51 | 139 | mcl::NoTLSFuture<std::shared_ptr<mcl::Buffer>> mcl::BufferVault::withdraw() | 139 | mcl::NoTLSFuture<std::shared_ptr<mcl::Buffer>> mcl::BufferVault::withdraw() |
52 | 140 | { | 140 | { |
53 | 141 | std::unique_lock<std::mutex> lk(mutex); | 141 | std::unique_lock<std::mutex> lk(mutex); |
54 | 142 | std::vector<int> free_ids; | ||
55 | 142 | if (disconnected_) | 143 | if (disconnected_) |
56 | 143 | BOOST_THROW_EXCEPTION(std::logic_error("server_disconnected")); | 144 | BOOST_THROW_EXCEPTION(std::logic_error("server_disconnected")); |
57 | 145 | |||
58 | 146 | //clean up incorrectly sized buffers | ||
59 | 147 | for (auto it = buffers.begin(); it != buffers.end();) | ||
60 | 148 | { | ||
61 | 149 | auto buffer = checked_buffer_from_map(it->first); | ||
62 | 150 | if ((it->second == Owner::Self) && (buffer->size() != size)) | ||
63 | 151 | { | ||
64 | 152 | current_buffer_count--; | ||
65 | 153 | free_ids.push_back(it->first); | ||
66 | 154 | it = buffers.erase(it); | ||
67 | 155 | } | ||
68 | 156 | else | ||
69 | 157 | { | ||
70 | 158 | it++; | ||
71 | 159 | } | ||
72 | 160 | } | ||
73 | 161 | |||
74 | 144 | mcl::NoTLSPromise<std::shared_ptr<mcl::Buffer>> promise; | 162 | mcl::NoTLSPromise<std::shared_ptr<mcl::Buffer>> promise; |
75 | 145 | auto it = available_buffer(); | 163 | auto it = available_buffer(); |
76 | 146 | auto future = promise.get_future(); | 164 | auto future = promise.get_future(); |
77 | @@ -148,6 +166,7 @@ | |||
78 | 148 | { | 166 | { |
79 | 149 | it->second = Owner::ContentProducer; | 167 | it->second = Owner::ContentProducer; |
80 | 150 | promise.set_value(checked_buffer_from_map(it->first)); | 168 | promise.set_value(checked_buffer_from_map(it->first)); |
81 | 169 | lk.unlock(); | ||
82 | 151 | } | 170 | } |
83 | 152 | else | 171 | else |
84 | 153 | { | 172 | { |
85 | @@ -162,6 +181,9 @@ | |||
86 | 162 | if (allocate_buffer) | 181 | if (allocate_buffer) |
87 | 163 | alloc_buffer(s, format, usage); | 182 | alloc_buffer(s, format, usage); |
88 | 164 | } | 183 | } |
89 | 184 | |||
90 | 185 | for(auto& id : free_ids) | ||
91 | 186 | free_buffer(id); | ||
92 | 165 | return future; | 187 | return future; |
93 | 166 | } | 188 | } |
94 | 167 | 189 | ||
95 | @@ -284,30 +306,9 @@ | |||
96 | 284 | set_size(lk, new_size); | 306 | set_size(lk, new_size); |
97 | 285 | } | 307 | } |
98 | 286 | 308 | ||
100 | 287 | void mcl::BufferVault::set_size(std::unique_lock<std::mutex>& lk, geometry::Size new_size) | 309 | void mcl::BufferVault::set_size(std::unique_lock<std::mutex> const&, geometry::Size new_size) |
101 | 288 | { | 310 | { |
102 | 289 | if (new_size == size) | ||
103 | 290 | return; | ||
104 | 291 | std::vector<int> free_ids; | ||
105 | 292 | size = new_size; | 311 | size = new_size; |
106 | 293 | for (auto it = buffers.begin(); it != buffers.end();) | ||
107 | 294 | { | ||
108 | 295 | auto buffer = checked_buffer_from_map(it->first); | ||
109 | 296 | if ((it->second == Owner::Self) && (buffer->size() != size)) | ||
110 | 297 | { | ||
111 | 298 | current_buffer_count--; | ||
112 | 299 | free_ids.push_back(it->first); | ||
113 | 300 | it = buffers.erase(it); | ||
114 | 301 | } | ||
115 | 302 | else | ||
116 | 303 | { | ||
117 | 304 | it++; | ||
118 | 305 | } | ||
119 | 306 | } | ||
120 | 307 | lk.unlock(); | ||
121 | 308 | |||
122 | 309 | for(auto& id : free_ids) | ||
123 | 310 | free_buffer(id); | ||
124 | 311 | } | 312 | } |
125 | 312 | 313 | ||
126 | 313 | void mcl::BufferVault::increase_buffer_count() | 314 | void mcl::BufferVault::increase_buffer_count() |
127 | 314 | 315 | ||
128 | === modified file 'src/client/buffer_vault.h' | |||
129 | --- src/client/buffer_vault.h 2016-06-02 13:03:43 +0000 | |||
130 | +++ src/client/buffer_vault.h 2016-07-28 17:57:14 +0000 | |||
131 | @@ -85,7 +85,7 @@ | |||
132 | 85 | void alloc_buffer(geometry::Size size, MirPixelFormat format, int usage); | 85 | void alloc_buffer(geometry::Size size, MirPixelFormat format, int usage); |
133 | 86 | void free_buffer(int free_id); | 86 | void free_buffer(int free_id); |
134 | 87 | void realloc_buffer(int free_id, geometry::Size size, MirPixelFormat format, int usage); | 87 | void realloc_buffer(int free_id, geometry::Size size, MirPixelFormat format, int usage); |
136 | 88 | void set_size(std::unique_lock<std::mutex>& lk, geometry::Size new_size); | 88 | void set_size(std::unique_lock<std::mutex>const& lk, geometry::Size new_size); |
137 | 89 | 89 | ||
138 | 90 | std::shared_ptr<Buffer> checked_buffer_from_map(int id); | 90 | std::shared_ptr<Buffer> checked_buffer_from_map(int id); |
139 | 91 | 91 | ||
140 | 92 | 92 | ||
141 | === modified file 'src/client/lttng/CMakeLists.txt' | |||
142 | --- src/client/lttng/CMakeLists.txt 2016-03-23 06:39:56 +0000 | |||
143 | +++ src/client/lttng/CMakeLists.txt 2016-07-28 17:57:14 +0000 | |||
144 | @@ -15,6 +15,15 @@ | |||
145 | 15 | string(REPLACE "-flto" "" NO_LTO_FLAGS ${CMAKE_C_FLAGS}) | 15 | string(REPLACE "-flto" "" NO_LTO_FLAGS ${CMAKE_C_FLAGS}) |
146 | 16 | set(CMAKE_C_FLAGS ${NO_LTO_FLAGS}) | 16 | set(CMAKE_C_FLAGS ${NO_LTO_FLAGS}) |
147 | 17 | 17 | ||
148 | 18 | # lttng-ust uses urcu headers which contain code blocks inside expressions | ||
149 | 19 | # this is a gnu extension. | ||
150 | 20 | string(REPLACE "-pedantic" "" NO_PEDANTIC_CHECK_FLAGS ${CMAKE_CXX_FLAGS}) | ||
151 | 21 | if("${CMAKE_CXX_COMPILER}" MATCHES "clang") | ||
152 | 22 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-statement-expression") | ||
153 | 23 | else() | ||
154 | 24 | set(CMAKE_CXX_FLAGS "${NO_PEDANTIC_CHECK_FLAGS}") | ||
155 | 25 | endif() | ||
156 | 26 | |||
157 | 18 | add_library(mirclientlttng SHARED tracepoints.c) | 27 | add_library(mirclientlttng SHARED tracepoints.c) |
158 | 19 | 28 | ||
159 | 20 | # Don't treat missing-field-initializers as an error, since | 29 | # Don't treat missing-field-initializers as an error, since |
160 | 21 | 30 | ||
161 | === modified file 'src/platform/options/default_configuration.cpp' | |||
162 | --- src/platform/options/default_configuration.cpp 2016-06-10 15:51:56 +0000 | |||
163 | +++ src/platform/options/default_configuration.cpp 2016-07-28 17:57:14 +0000 | |||
164 | @@ -172,7 +172,7 @@ | |||
165 | 172 | "How to handle the SharedLibraryProber report. [{log,lttng,off}]") | 172 | "How to handle the SharedLibraryProber report. [{log,lttng,off}]") |
166 | 173 | (shell_report_opt, po::value<std::string>()->default_value(off_opt_value), | 173 | (shell_report_opt, po::value<std::string>()->default_value(off_opt_value), |
167 | 174 | "How to handle the Shell report. [{log,off}]") | 174 | "How to handle the Shell report. [{log,off}]") |
169 | 175 | (nbuffers_opt, po::value<int>()->default_value(3), | 175 | (nbuffers_opt, po::value<int>()->default_value(0), |
170 | 176 | "Number of buffers per surface.") | 176 | "Number of buffers per surface.") |
171 | 177 | (composite_delay_opt, po::value<int>()->default_value(-1), | 177 | (composite_delay_opt, po::value<int>()->default_value(-1), |
172 | 178 | "Compositor frame delay in milliseconds (how long to wait for new " | 178 | "Compositor frame delay in milliseconds (how long to wait for new " |
173 | 179 | 179 | ||
174 | === modified file 'src/server/report/lttng/CMakeLists.txt' | |||
175 | --- src/server/report/lttng/CMakeLists.txt 2016-03-23 06:39:56 +0000 | |||
176 | +++ src/server/report/lttng/CMakeLists.txt 2016-07-28 17:57:14 +0000 | |||
177 | @@ -14,6 +14,15 @@ | |||
178 | 14 | string(REPLACE "-flto" "" NO_LTO_FLAGS ${CMAKE_C_FLAGS}) | 14 | string(REPLACE "-flto" "" NO_LTO_FLAGS ${CMAKE_C_FLAGS}) |
179 | 15 | set(CMAKE_C_FLAGS ${NO_LTO_FLAGS}) | 15 | set(CMAKE_C_FLAGS ${NO_LTO_FLAGS}) |
180 | 16 | 16 | ||
181 | 17 | # lttng-ust uses urcu headers which contain code blocks inside expressions | ||
182 | 18 | # this is a gnu extension. | ||
183 | 19 | string(REPLACE "-pedantic" "" NO_PEDANTIC_CHECK_FLAGS ${CMAKE_CXX_FLAGS}) | ||
184 | 20 | if("${CMAKE_CXX_COMPILER}" MATCHES "clang") | ||
185 | 21 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-statement-expression") | ||
186 | 22 | else() | ||
187 | 23 | set(CMAKE_CXX_FLAGS "${NO_PEDANTIC_CHECK_FLAGS}") | ||
188 | 24 | endif() | ||
189 | 25 | |||
190 | 17 | set( | 26 | set( |
191 | 18 | LTTNG_SOURCES | 27 | LTTNG_SOURCES |
192 | 19 | 28 | ||
193 | 20 | 29 | ||
194 | === modified file 'tests/acceptance-tests/CMakeLists.txt' | |||
195 | --- tests/acceptance-tests/CMakeLists.txt 2016-06-10 15:51:56 +0000 | |||
196 | +++ tests/acceptance-tests/CMakeLists.txt 2016-07-28 17:57:14 +0000 | |||
197 | @@ -93,5 +93,5 @@ | |||
198 | 93 | 93 | ||
199 | 94 | if (MIR_RUN_ACCEPTANCE_TESTS) | 94 | if (MIR_RUN_ACCEPTANCE_TESTS) |
200 | 95 | mir_discover_tests_with_fd_leak_detection(mir_acceptance_tests) | 95 | mir_discover_tests_with_fd_leak_detection(mir_acceptance_tests) |
202 | 96 | mir_discover_tests_with_fd_leak_detection_and_env(mir_acceptance_tests "MIR_SERVER_NBUFFERS=0") | 96 | mir_discover_tests_with_fd_leak_detection_and_env(mir_acceptance_tests "MIR_SERVER_NBUFFERS=3") |
203 | 97 | endif (MIR_RUN_ACCEPTANCE_TESTS) | 97 | endif (MIR_RUN_ACCEPTANCE_TESTS) |
204 | 98 | 98 | ||
205 | === modified file 'tests/unit-tests/client/test_buffer_vault.cpp' | |||
206 | --- tests/unit-tests/client/test_buffer_vault.cpp 2016-06-02 13:03:43 +0000 | |||
207 | +++ tests/unit-tests/client/test_buffer_vault.cpp 2016-07-28 17:57:14 +0000 | |||
208 | @@ -348,9 +348,10 @@ | |||
209 | 348 | EXPECT_CALL(mock_requests, allocate_buffer(new_size,_,_)); | 348 | EXPECT_CALL(mock_requests, allocate_buffer(new_size,_,_)); |
210 | 349 | 349 | ||
211 | 350 | vault.wire_transfer_inbound(package.buffer_id()); | 350 | vault.wire_transfer_inbound(package.buffer_id()); |
212 | 351 | Mock::VerifyAndClearExpectations(&mock_requests); | ||
213 | 352 | |||
214 | 351 | vault.wire_transfer_inbound(package4.buffer_id()); | 353 | vault.wire_transfer_inbound(package4.buffer_id()); |
215 | 352 | EXPECT_THAT(vault.withdraw().get()->size(), Eq(new_size)); | 354 | EXPECT_THAT(vault.withdraw().get()->size(), Eq(new_size)); |
216 | 353 | Mock::VerifyAndClearExpectations(&mock_requests); | ||
217 | 354 | } | 355 | } |
218 | 355 | 356 | ||
219 | 356 | TEST_F(StartedBufferVault, withdraw_gives_only_newly_sized_buffers_after_resize) | 357 | TEST_F(StartedBufferVault, withdraw_gives_only_newly_sized_buffers_after_resize) |
220 | @@ -363,20 +364,6 @@ | |||
221 | 363 | Mock::VerifyAndClearExpectations(&mock_requests); | 364 | Mock::VerifyAndClearExpectations(&mock_requests); |
222 | 364 | } | 365 | } |
223 | 365 | 366 | ||
224 | 366 | TEST_F(StartedBufferVault, setting_size_frees_unneeded_buffers_right_away) | ||
225 | 367 | { | ||
226 | 368 | EXPECT_CALL(mock_requests, free_buffer(_)).Times(3); | ||
227 | 369 | EXPECT_CALL(mock_requests, allocate_buffer(_,_,_)).Times(0); | ||
228 | 370 | auto const cycles = 30u; | ||
229 | 371 | geom::Size new_size(80, 100); | ||
230 | 372 | for(auto i = 0u; i < cycles; i++) | ||
231 | 373 | { | ||
232 | 374 | new_size = geom::Size(geom::Width(i), new_size.height); | ||
233 | 375 | vault.set_size(new_size); | ||
234 | 376 | } | ||
235 | 377 | Mock::VerifyAndClearExpectations(&mock_requests); | ||
236 | 378 | } | ||
237 | 379 | |||
238 | 380 | TEST_F(StartedBufferVault, scaling_resizes_buffers_right_away) | 367 | TEST_F(StartedBufferVault, scaling_resizes_buffers_right_away) |
239 | 381 | { | 368 | { |
240 | 382 | EXPECT_CALL(mock_requests, allocate_buffer(_,_,_)) | 369 | EXPECT_CALL(mock_requests, allocate_buffer(_,_,_)) |
241 | @@ -584,10 +571,28 @@ | |||
242 | 584 | Mock::VerifyAndClearExpectations(&mock_requests); | 571 | Mock::VerifyAndClearExpectations(&mock_requests); |
243 | 585 | } | 572 | } |
244 | 586 | 573 | ||
245 | 574 | //LP: #1590765 (more efficient allocations, and krillin/mali accommodation) | ||
246 | 575 | TEST_F(StartedBufferVault, doesnt_free_buffer_until_a_newly_sized_buffer_is_called_for) | ||
247 | 576 | { | ||
248 | 577 | auto i = 0u; | ||
249 | 578 | auto const num_resizes = 10u; | ||
250 | 579 | std::array<geom::Size, num_resizes> other_sizes; | ||
251 | 580 | std::generate(other_sizes.begin(), other_sizes.end(), | ||
252 | 581 | [&i, this] { return geom::Size{ size.width.as_int() + i, size.height.as_int() + i }; } ); | ||
253 | 582 | |||
254 | 583 | EXPECT_CALL(mock_requests, free_buffer(_)) | ||
255 | 584 | .Times(0); | ||
256 | 585 | for(auto const& size : other_sizes) | ||
257 | 586 | vault.set_size(size); | ||
258 | 587 | vault.set_size(size); //set back the original size | ||
259 | 588 | |||
260 | 589 | auto buffer_future = vault.withdraw(); | ||
261 | 590 | EXPECT_THAT(buffer_future.get()->size(), Eq(size)); | ||
262 | 591 | Mock::VerifyAndClearExpectations(&mock_requests); | ||
263 | 592 | } | ||
264 | 593 | |||
265 | 587 | TEST_F(StartedBufferVault, doesnt_free_buffers_in_the_driver_after_resize) | 594 | TEST_F(StartedBufferVault, doesnt_free_buffers_in_the_driver_after_resize) |
266 | 588 | { | 595 | { |
267 | 589 | EXPECT_CALL(mock_requests, free_buffer(_)) | ||
268 | 590 | .Times(2); | ||
269 | 591 | auto buffer = vault.withdraw().get(); | 596 | auto buffer = vault.withdraw().get(); |
270 | 592 | vault.set_size(new_size); | 597 | vault.set_size(new_size); |
271 | 593 | Mock::VerifyAndClearExpectations(&mock_requests); | 598 | Mock::VerifyAndClearExpectations(&mock_requests); |
272 | @@ -603,8 +608,6 @@ | |||
273 | 603 | 608 | ||
274 | 604 | TEST_F(StartedBufferVault, doesnt_free_buffers_with_content_after_resize) | 609 | TEST_F(StartedBufferVault, doesnt_free_buffers_with_content_after_resize) |
275 | 605 | { | 610 | { |
276 | 606 | EXPECT_CALL(mock_requests, free_buffer(_)) | ||
277 | 607 | .Times(2); | ||
278 | 608 | auto buffer = vault.withdraw().get(); | 611 | auto buffer = vault.withdraw().get(); |
279 | 609 | vault.deposit(buffer); | 612 | vault.deposit(buffer); |
280 | 610 | vault.set_size(new_size); | 613 | vault.set_size(new_size); |
281 | 611 | 614 | ||
282 | === added file 'tools/valgrind_suppressions_libhybris' | |||
283 | --- tools/valgrind_suppressions_libhybris 1970-01-01 00:00:00 +0000 | |||
284 | +++ tools/valgrind_suppressions_libhybris 2016-07-28 17:57:14 +0000 | |||
285 | @@ -0,0 +1,10 @@ | |||
286 | 1 | { | ||
287 | 2 | hw_get_module | ||
288 | 3 | Memcheck:Leak | ||
289 | 4 | match-leak-kinds: definite | ||
290 | 5 | fun:malloc | ||
291 | 6 | obj:* | ||
292 | 7 | ... | ||
293 | 8 | fun:_ZN3mir7options20DefaultConfiguration20add_platform_optionsEv | ||
294 | 9 | ... | ||
295 | 10 | } |
FAILED: Continuous integration, rev:3529 /code.launchpad .net/~kdub/ mir/ci- test/+merge/ 301373/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
https:/ /mir-jenkins. ubuntu. com/job/ mir-ubuntu- ci/43/ /mir-jenkins. ubuntu. com/job/ build-mir/ 1630/console /mir-jenkins. ubuntu. com/job/ build-0- fetch/1683 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 1674 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 1674 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= yakkety/ 1674 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= vivid+overlay/ 1645/console /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 1645/console /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 1645/console /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 1645/console /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 1645/console
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild: /mir-jenkins. ubuntu. com/job/ mir-ubuntu- ci/43/rebuild
https:/