Merge lp:~vanvugt/mir/clang into lp:~mir-team/mir/trunk
- clang
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Robert Carr |
Approved revision: | no longer in the source branch. |
Merged at revision: | 517 |
Proposed branch: | lp:~vanvugt/mir/clang |
Merge into: | lp:~mir-team/mir/trunk |
Diff against target: |
645 lines (+73/-91) 40 files modified
CMakeLists.txt (+15/-2) cmake/src/mir/mir_discover_gtest_tests.cpp (+0/-21) examples/image_renderer.cpp (+4/-0) include/server/mir/compositor/buffer.h (+1/-1) include/server/mir/compositor/buffer_allocation_strategy.h (+1/-1) include/server/mir/compositor/buffer_bundle_manager.h (+1/-1) include/server/mir/compositor/buffer_bundle_surfaces.h (+1/-1) include/server/mir/compositor/graphic_buffer_allocator.h (+1/-1) include/server/mir/compositor/swapper_factory.h (+1/-1) include/server/mir/frontend/shell.h (+1/-1) include/server/mir/graphics/platform.h (+1/-1) include/server/mir/graphics/renderable.h (+5/-0) include/server/mir/shell/session_manager.h (+1/-1) include/server/mir/shell/surface_builder.h (+1/-1) include/server/mir/surfaces/buffer_bundle_factory.h (+1/-1) include/server/mir/surfaces/surface_stack.h (+1/-1) include/server/mir/surfaces/surface_stack_model.h (+1/-1) include/shared/mir/geometry/forward.h (+3/-3) src/client/client_buffer.h (+1/-1) src/client/client_buffer_depository.h (+1/-1) src/client/client_context.h (+2/-2) src/client/mir_connection.h (+1/-1) src/client/mir_surface.h (+2/-2) src/client/mir_wait_handle.h (+1/-1) src/server/frontend/protobuf_socket_communicator.h (+2/-1) src/server/graphics/gbm/gbm_buffer_allocator.h (+1/-1) src/server/graphics/gbm/gbm_display.h (+1/-1) src/server/graphics/gbm/gbm_display_buffer.cpp (+0/-8) src/server/graphics/gbm/gbm_display_helpers.h (+1/-1) src/server/graphics/gbm/kms_display_configuration.cpp (+0/-1) src/server/graphics/gbm/kms_display_configuration.h (+0/-1) tests/CMakeLists.txt (+6/-0) tests/death-tests/test_application_manager_death.cpp (+5/-4) tests/integration-tests/test_drm_auth_magic.cpp (+1/-1) tests/integration-tests/test_surfaceloop.cpp (+1/-2) tests/mir_test_framework/testing_process_manager.cpp (+3/-19) tests/unit-tests/geometry/test-displacement.cpp (+1/-1) tests/unit-tests/geometry/test-point.cpp (+1/-1) tests/unit-tests/geometry/test-rectangle.cpp (+1/-1) tests/unit-tests/graphics/gbm/mock_gbm.h (+1/-1) |
To merge this branch: | bzr merge lp:~vanvugt/mir/clang |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Kevin DuBois (community) | Approve | ||
Robert Carr (community) | Approve | ||
Alan Griffiths | Approve | ||
Alexandros Frantzis | Pending | ||
Review via email: mp+153984@code.launchpad.net |
This proposal supersedes a proposal from 2013-03-15.
Commit message
Add support for compiling Mir with Clang.
Caveats:
* Clang 3.1 or later is required (raring or later).
* Input does not compile yet, due to deep problems with the boost/android-
input headers.
* Tests fail when built with clang. Fix them later...
How to build with clang:
cmake .. -DCMAKE_
This also resolves LP: #1152625.
Description of the change
If you see something strange and don't understand "why", try building with clang and undoing the change by hand. Clang will tell you "why".
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
Alan Griffiths (alan-griffiths) wrote : Posted in a previous version of this proposal | # |
OK
Alexandros Frantzis (afrantzis) wrote : Posted in a previous version of this proposal | # |
616 - Displacement const disp;
617 + Displacement disp;
... and Point and Rectangle
The error is "default initialization of an object of const type '...' requires a user-provided default constructor"
I'd rather we didn't drop const and value initialize instead:
Displacement const disp{};
Alternatively we could provide appropriate constructors:
Displacement() {}
Displacement(DeltaX const& dx, DeltaY const& dy) : dx{dx}, dy{dy} {}
Note that in gcc we don't see this because gcc "allows const objects with no initializer or user-provided default constructor if the defaulted constructor initializes all the subobjects.", which IMHO, is what should have been in the standard in the first place... (see http://
Kevin DuBois (kdub) wrote : Posted in a previous version of this proposal | # |
seems ok. doesn't break android gcc cross build. I wouldn't expect clang to work to build for armhf for android with this branch alone. That being said, i'll +1, pending alexandros's comments
Alan Griffiths (alan-griffiths) wrote : Posted in a previous version of this proposal | # |
> 616 - Displacement const disp;
> 617 + Displacement disp;
> ... and Point and Rectangle
>
> The error is "default initialization of an object of const type '...' requires
> a user-provided default constructor"
>
> I'd rather we didn't drop const and value initialize instead:
>
> Displacement const disp{};
>
> Alternatively we could provide appropriate constructors:
>
> Displacement() {}
> Displacement(DeltaX const& dx, DeltaY const& dy) : dx{dx}, dy{dy} {}
>
> Note that in gcc we don't see this because gcc "allows const objects with no
> initializer or user-provided default constructor if the defaulted constructor
> initializes all the subobjects.", which IMHO, is what should have been in the
> standard in the first place... (see
> http://
I'm convinced
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal | # |
Tried Alexandros' suggestion of "Foo const bar{}". Clang likes it, but gcc does not:
test-point.
"Foo bar;" is still the most elegant way to support both compilers. I don't think const-ness in test cases justifies polluting otherwise simple struct definitions with explicit constructors. So keeping it as it was.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:510
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Alexandros Frantzis (afrantzis) wrote : | # |
> Clang likes it, but gcc does not:
> test-point.
Sigh... http://
How about:
Displacement const disp = Displacement();
Daniel van Vugt (vanvugt) wrote : | # |
I don't think:
Displacement const disp = Displacement();
is a good alternative. Doesn't that create a non-const temporary anyway?
Alexandros Frantzis (afrantzis) wrote : | # |
> I don't think:
> Displacement const disp = Displacement();
> is a good alternative. Doesn't that create a non-const temporary anyway?
Depends on the compiler. I expect that the compiler is able to elide the copy and use of a temporary object.
But even if there is a non-const temporary involved, I don't see a problem; we don't (or have any way to) access this temporary object.
Daniel van Vugt (vanvugt) wrote : | # |
I think we're wasting time here.
At the binary level, both:
Displacement const disp;
and
Displacement disp;
are identical.
Only the latter works with both gcc and clang compilers. And although you could possibly make the expression more complex to keep the variable const, that would contradict the intention of the test cases in question -- to represent a completely uninitialized object.
Since the intention of this code is to test what happens to uninitialized objects, I think it would be preferable to avoid assignment. Regardless of assumptions about what might get optimized out.
Alan Griffiths (alan-griffiths) wrote : | # |
> I think we're wasting time here.
>
> At the binary level, both:
> Displacement const disp;
> and
> Displacement disp;
> are identical.
And, with any sane compiler so is:
Displacement const disp = Displacement();
auto const disp = Displacement();
auto const& disp = Displacement();
etc.
Alan Griffiths (alan-griffiths) wrote : | # |
I'd mildly prefer "auto const& disp = Displacement();" but not worth blocking on.
Alexandros Frantzis (afrantzis) wrote : | # |
> intention of the test cases in question -- to represent a completely uninitialized object.
The intention is to verify that default-
Kevin DuBois (kdub) wrote : | # |
still a +1 from before the resubmittal
PS Jenkins bot (ps-jenkins) : | # |
Preview Diff
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2013-03-15 22:34:53 +0000 | |||
3 | +++ CMakeLists.txt 2013-03-19 03:30:28 +0000 | |||
4 | @@ -24,8 +24,13 @@ | |||
5 | 24 | ) | 24 | ) |
6 | 25 | cmake_policy(SET CMP0015 NEW) | 25 | cmake_policy(SET CMP0015 NEW) |
7 | 26 | 26 | ||
10 | 27 | set(CMAKE_C_COMPILER gcc-${MIR_GCC_VERSION}) | 27 | if (NOT DEFINED CMAKE_C_COMPILER) |
11 | 28 | set(CMAKE_CXX_COMPILER g++-${MIR_GCC_VERSION}) | 28 | set (CMAKE_C_COMPILER gcc-${MIR_GCC_VERSION}) |
12 | 29 | endif () | ||
13 | 30 | if (NOT DEFINED CMAKE_CXX_COMPILER) | ||
14 | 31 | set (CMAKE_CXX_COMPILER g++-${MIR_GCC_VERSION}) | ||
15 | 32 | endif () | ||
16 | 33 | |||
17 | 29 | set(CMAKE_GCOV gcov-${MIR_GCC_VERSION}) | 34 | set(CMAKE_GCOV gcov-${MIR_GCC_VERSION}) |
18 | 30 | 35 | ||
19 | 31 | project(Mir) | 36 | project(Mir) |
20 | @@ -169,6 +174,10 @@ | |||
21 | 169 | add_subdirectory(src/) | 174 | add_subdirectory(src/) |
22 | 170 | include_directories(${MIR_GENERATED_INCLUDE_DIRECTORIES}) | 175 | include_directories(${MIR_GENERATED_INCLUDE_DIRECTORIES}) |
23 | 171 | 176 | ||
24 | 177 | set (OLD_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) | ||
25 | 178 | # Don't treat warnings as errors in 3rd_party/{gmock,cucumber-cpp} | ||
26 | 179 | string (REPLACE " -Werror " " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) | ||
27 | 180 | |||
28 | 172 | # Pulling in local gmock version | 181 | # Pulling in local gmock version |
29 | 173 | # While this seems evil, we are doing | 182 | # While this seems evil, we are doing |
30 | 174 | # it to ensure/allow for: | 183 | # it to ensure/allow for: |
31 | @@ -195,6 +204,10 @@ | |||
32 | 195 | ) | 204 | ) |
33 | 196 | # We need to build cucumber after gtest | 205 | # We need to build cucumber after gtest |
34 | 197 | add_subdirectory(3rd_party/cucumber-cpp) | 206 | add_subdirectory(3rd_party/cucumber-cpp) |
35 | 207 | |||
36 | 208 | # Restore -Werror for non-3rd-party code | ||
37 | 209 | set (CMAKE_CXX_FLAGS ${OLD_CMAKE_CXX_FLAGS}) | ||
38 | 210 | |||
39 | 198 | add_subdirectory(benchmarks/) | 211 | add_subdirectory(benchmarks/) |
40 | 199 | add_subdirectory(tests/) | 212 | add_subdirectory(tests/) |
41 | 200 | add_subdirectory(tools/) | 213 | add_subdirectory(tools/) |
42 | 201 | 214 | ||
43 | === modified file 'cmake/src/mir/mir_discover_gtest_tests.cpp' | |||
44 | --- cmake/src/mir/mir_discover_gtest_tests.cpp 2013-03-08 07:20:43 +0000 | |||
45 | +++ cmake/src/mir/mir_discover_gtest_tests.cpp 2013-03-19 03:30:28 +0000 | |||
46 | @@ -52,11 +52,6 @@ | |||
47 | 52 | return width; | 52 | return width; |
48 | 53 | } | 53 | } |
49 | 54 | 54 | ||
50 | 55 | std::string& ltrim(std::string &s) { | ||
51 | 56 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace)))); | ||
52 | 57 | return s; | ||
53 | 58 | } | ||
54 | 59 | |||
55 | 60 | string ordinary_cmd_line_pattern() | 55 | string ordinary_cmd_line_pattern() |
56 | 61 | { | 56 | { |
57 | 62 | static const char* pattern = "ADD_TEST(\"%s.%s\" \"%s\" \"--gtest_filter=%s\")\n"; | 57 | static const char* pattern = "ADD_TEST(\"%s.%s\" \"%s\" \"--gtest_filter=%s\")\n"; |
58 | @@ -89,22 +84,6 @@ | |||
59 | 89 | return ss.str(); | 84 | return ss.str(); |
60 | 90 | } | 85 | } |
61 | 91 | 86 | ||
62 | 92 | std::string elide_string_right(const std::string& in, std::size_t max_size) | ||
63 | 93 | { | ||
64 | 94 | assert(max_size >= 3); | ||
65 | 95 | |||
66 | 96 | std::string result(in.begin(), in.begin() + max_size); | ||
67 | 97 | |||
68 | 98 | if (in.size() >= max_size) | ||
69 | 99 | { | ||
70 | 100 | *(result.end()-1) = '.'; | ||
71 | 101 | *(result.end()-2) = '.'; | ||
72 | 102 | *(result.end()-3) = '.'; | ||
73 | 103 | } | ||
74 | 104 | |||
75 | 105 | return result; | ||
76 | 106 | } | ||
77 | 107 | |||
78 | 108 | std::string elide_string_left(const std::string& in, std::size_t max_size) | 87 | std::string elide_string_left(const std::string& in, std::size_t max_size) |
79 | 109 | { | 88 | { |
80 | 110 | assert(max_size >= 3); | 89 | assert(max_size >= 3); |
81 | 111 | 90 | ||
82 | === modified file 'examples/image_renderer.cpp' | |||
83 | --- examples/image_renderer.cpp 2013-01-02 12:16:08 +0000 | |||
84 | +++ examples/image_renderer.cpp 2013-03-19 03:30:28 +0000 | |||
85 | @@ -18,7 +18,11 @@ | |||
86 | 18 | 18 | ||
87 | 19 | #include "image_renderer.h" | 19 | #include "image_renderer.h" |
88 | 20 | 20 | ||
89 | 21 | // Unfortunately we have to ignore warnings/errors in 3rd party code. | ||
90 | 22 | #pragma GCC diagnostic push | ||
91 | 23 | #pragma GCC diagnostic warning "-Wall" | ||
92 | 21 | #include <glm/glm.hpp> | 24 | #include <glm/glm.hpp> |
93 | 25 | #pragma GCC diagnostic pop | ||
94 | 22 | #include <glm/gtc/type_ptr.hpp> | 26 | #include <glm/gtc/type_ptr.hpp> |
95 | 23 | 27 | ||
96 | 24 | #include <memory> | 28 | #include <memory> |
97 | 25 | 29 | ||
98 | === modified file 'include/server/mir/compositor/buffer.h' | |||
99 | --- include/server/mir/compositor/buffer.h 2013-03-07 08:04:05 +0000 | |||
100 | +++ include/server/mir/compositor/buffer.h 2013-03-19 03:30:28 +0000 | |||
101 | @@ -27,7 +27,7 @@ | |||
102 | 27 | { | 27 | { |
103 | 28 | namespace compositor | 28 | namespace compositor |
104 | 29 | { | 29 | { |
106 | 30 | class BufferIPCPackage; | 30 | struct BufferIPCPackage; |
107 | 31 | class BufferID; | 31 | class BufferID; |
108 | 32 | 32 | ||
109 | 33 | class Buffer : public surfaces::GraphicRegion | 33 | class Buffer : public surfaces::GraphicRegion |
110 | 34 | 34 | ||
111 | === modified file 'include/server/mir/compositor/buffer_allocation_strategy.h' | |||
112 | --- include/server/mir/compositor/buffer_allocation_strategy.h 2013-03-07 08:04:05 +0000 | |||
113 | +++ include/server/mir/compositor/buffer_allocation_strategy.h 2013-03-19 03:30:28 +0000 | |||
114 | @@ -31,7 +31,7 @@ | |||
115 | 31 | { | 31 | { |
116 | 32 | class GraphicBufferAllocator; | 32 | class GraphicBufferAllocator; |
117 | 33 | class BufferSwapper; | 33 | class BufferSwapper; |
119 | 34 | class BufferProperties; | 34 | struct BufferProperties; |
120 | 35 | 35 | ||
121 | 36 | class BufferAllocationStrategy | 36 | class BufferAllocationStrategy |
122 | 37 | { | 37 | { |
123 | 38 | 38 | ||
124 | === modified file 'include/server/mir/compositor/buffer_bundle_manager.h' | |||
125 | --- include/server/mir/compositor/buffer_bundle_manager.h 2013-03-07 08:04:05 +0000 | |||
126 | +++ include/server/mir/compositor/buffer_bundle_manager.h 2013-03-19 03:30:28 +0000 | |||
127 | @@ -33,7 +33,7 @@ | |||
128 | 33 | 33 | ||
129 | 34 | class BufferAllocationStrategy; | 34 | class BufferAllocationStrategy; |
130 | 35 | class GraphicBufferAllocator; | 35 | class GraphicBufferAllocator; |
132 | 36 | class BufferProperties; | 36 | struct BufferProperties; |
133 | 37 | 37 | ||
134 | 38 | class BufferBundleManager : public surfaces::BufferBundleFactory | 38 | class BufferBundleManager : public surfaces::BufferBundleFactory |
135 | 39 | { | 39 | { |
136 | 40 | 40 | ||
137 | === modified file 'include/server/mir/compositor/buffer_bundle_surfaces.h' | |||
138 | --- include/server/mir/compositor/buffer_bundle_surfaces.h 2013-03-07 08:04:05 +0000 | |||
139 | +++ include/server/mir/compositor/buffer_bundle_surfaces.h 2013-03-19 03:30:28 +0000 | |||
140 | @@ -30,7 +30,7 @@ | |||
141 | 30 | { | 30 | { |
142 | 31 | 31 | ||
143 | 32 | class BufferIDUniqueGenerator; | 32 | class BufferIDUniqueGenerator; |
145 | 33 | class BufferProperties; | 33 | struct BufferProperties; |
146 | 34 | class BufferSwapper; | 34 | class BufferSwapper; |
147 | 35 | 35 | ||
148 | 36 | class BufferBundleSurfaces : public surfaces::BufferBundle | 36 | class BufferBundleSurfaces : public surfaces::BufferBundle |
149 | 37 | 37 | ||
150 | === modified file 'include/server/mir/compositor/graphic_buffer_allocator.h' | |||
151 | --- include/server/mir/compositor/graphic_buffer_allocator.h 2013-03-07 08:04:05 +0000 | |||
152 | +++ include/server/mir/compositor/graphic_buffer_allocator.h 2013-03-19 03:30:28 +0000 | |||
153 | @@ -29,7 +29,7 @@ | |||
154 | 29 | namespace compositor | 29 | namespace compositor |
155 | 30 | { | 30 | { |
156 | 31 | 31 | ||
158 | 32 | class BufferProperties; | 32 | struct BufferProperties; |
159 | 33 | 33 | ||
160 | 34 | class GraphicBufferAllocator | 34 | class GraphicBufferAllocator |
161 | 35 | { | 35 | { |
162 | 36 | 36 | ||
163 | === modified file 'include/server/mir/compositor/swapper_factory.h' | |||
164 | --- include/server/mir/compositor/swapper_factory.h 2013-03-07 08:04:05 +0000 | |||
165 | +++ include/server/mir/compositor/swapper_factory.h 2013-03-19 03:30:28 +0000 | |||
166 | @@ -27,7 +27,7 @@ | |||
167 | 27 | { | 27 | { |
168 | 28 | 28 | ||
169 | 29 | class GraphicBufferAllocator; | 29 | class GraphicBufferAllocator; |
171 | 30 | class BufferProperties; | 30 | struct BufferProperties; |
172 | 31 | 31 | ||
173 | 32 | class SwapperFactory : public BufferAllocationStrategy | 32 | class SwapperFactory : public BufferAllocationStrategy |
174 | 33 | { | 33 | { |
175 | 34 | 34 | ||
176 | === modified file 'include/server/mir/frontend/shell.h' | |||
177 | --- include/server/mir/frontend/shell.h 2013-03-15 23:15:45 +0000 | |||
178 | +++ include/server/mir/frontend/shell.h 2013-03-19 03:30:28 +0000 | |||
179 | @@ -28,7 +28,7 @@ | |||
180 | 28 | namespace frontend | 28 | namespace frontend |
181 | 29 | { | 29 | { |
182 | 30 | class Session; | 30 | class Session; |
184 | 31 | class SurfaceCreationParameters; | 31 | struct SurfaceCreationParameters; |
185 | 32 | 32 | ||
186 | 33 | class Shell | 33 | class Shell |
187 | 34 | { | 34 | { |
188 | 35 | 35 | ||
189 | === modified file 'include/server/mir/graphics/platform.h' | |||
190 | --- include/server/mir/graphics/platform.h 2013-03-07 08:04:05 +0000 | |||
191 | +++ include/server/mir/graphics/platform.h 2013-03-19 03:30:28 +0000 | |||
192 | @@ -36,7 +36,7 @@ | |||
193 | 36 | { | 36 | { |
194 | 37 | 37 | ||
195 | 38 | class Display; | 38 | class Display; |
197 | 39 | class PlatformIPCPackage; | 39 | struct PlatformIPCPackage; |
198 | 40 | class BufferInitializer; | 40 | class BufferInitializer; |
199 | 41 | 41 | ||
200 | 42 | class DisplayReport; | 42 | class DisplayReport; |
201 | 43 | 43 | ||
202 | === modified file 'include/server/mir/graphics/renderable.h' | |||
203 | --- include/server/mir/graphics/renderable.h 2013-03-07 08:04:05 +0000 | |||
204 | +++ include/server/mir/graphics/renderable.h 2013-03-19 03:30:28 +0000 | |||
205 | @@ -22,7 +22,12 @@ | |||
206 | 22 | #include "mir/geometry/point.h" | 22 | #include "mir/geometry/point.h" |
207 | 23 | #include "mir/geometry/size.h" | 23 | #include "mir/geometry/size.h" |
208 | 24 | #include <memory> | 24 | #include <memory> |
209 | 25 | |||
210 | 26 | // Unfortunately we have to ignore warnings/errors in 3rd party code. | ||
211 | 27 | #pragma GCC diagnostic push | ||
212 | 28 | #pragma GCC diagnostic warning "-Wall" | ||
213 | 25 | #include <glm/glm.hpp> | 29 | #include <glm/glm.hpp> |
214 | 30 | #pragma GCC diagnostic pop | ||
215 | 26 | 31 | ||
216 | 27 | namespace mir | 32 | namespace mir |
217 | 28 | { | 33 | { |
218 | 29 | 34 | ||
219 | === modified file 'include/server/mir/shell/session_manager.h' | |||
220 | --- include/server/mir/shell/session_manager.h 2013-03-15 23:15:45 +0000 | |||
221 | +++ include/server/mir/shell/session_manager.h 2013-03-19 03:30:28 +0000 | |||
222 | @@ -30,7 +30,7 @@ | |||
223 | 30 | { | 30 | { |
224 | 31 | namespace frontend | 31 | namespace frontend |
225 | 32 | { | 32 | { |
227 | 33 | class SurfaceCreationParameters; | 33 | struct SurfaceCreationParameters; |
228 | 34 | } | 34 | } |
229 | 35 | 35 | ||
230 | 36 | /// Management of sessions and surfaces | 36 | /// Management of sessions and surfaces |
231 | 37 | 37 | ||
232 | === modified file 'include/server/mir/shell/surface_builder.h' | |||
233 | --- include/server/mir/shell/surface_builder.h 2013-03-18 15:13:28 +0000 | |||
234 | +++ include/server/mir/shell/surface_builder.h 2013-03-19 03:30:28 +0000 | |||
235 | @@ -24,7 +24,7 @@ | |||
236 | 24 | 24 | ||
237 | 25 | namespace mir | 25 | namespace mir |
238 | 26 | { | 26 | { |
240 | 27 | namespace frontend { class SurfaceCreationParameters; } | 27 | namespace frontend { struct SurfaceCreationParameters; } |
241 | 28 | namespace surfaces { class Surface; } | 28 | namespace surfaces { class Surface; } |
242 | 29 | 29 | ||
243 | 30 | namespace shell | 30 | namespace shell |
244 | 31 | 31 | ||
245 | === modified file 'include/server/mir/surfaces/buffer_bundle_factory.h' | |||
246 | --- include/server/mir/surfaces/buffer_bundle_factory.h 2013-03-07 08:04:05 +0000 | |||
247 | +++ include/server/mir/surfaces/buffer_bundle_factory.h 2013-03-19 03:30:28 +0000 | |||
248 | @@ -27,7 +27,7 @@ | |||
249 | 27 | { | 27 | { |
250 | 28 | namespace compositor | 28 | namespace compositor |
251 | 29 | { | 29 | { |
253 | 30 | class BufferProperties; | 30 | struct BufferProperties; |
254 | 31 | } | 31 | } |
255 | 32 | 32 | ||
256 | 33 | namespace surfaces | 33 | namespace surfaces |
257 | 34 | 34 | ||
258 | === modified file 'include/server/mir/surfaces/surface_stack.h' | |||
259 | --- include/server/mir/surfaces/surface_stack.h 2013-03-18 15:13:28 +0000 | |||
260 | +++ include/server/mir/surfaces/surface_stack.h 2013-03-19 03:30:28 +0000 | |||
261 | @@ -37,7 +37,7 @@ | |||
262 | 37 | 37 | ||
263 | 38 | namespace frontend | 38 | namespace frontend |
264 | 39 | { | 39 | { |
266 | 40 | class SurfaceCreationParameters; | 40 | struct SurfaceCreationParameters; |
267 | 41 | } | 41 | } |
268 | 42 | 42 | ||
269 | 43 | /// Management of Surface objects. Includes the model (SurfaceStack and Surface | 43 | /// Management of Surface objects. Includes the model (SurfaceStack and Surface |
270 | 44 | 44 | ||
271 | === modified file 'include/server/mir/surfaces/surface_stack_model.h' | |||
272 | --- include/server/mir/surfaces/surface_stack_model.h 2013-03-15 22:34:53 +0000 | |||
273 | +++ include/server/mir/surfaces/surface_stack_model.h 2013-03-19 03:30:28 +0000 | |||
274 | @@ -25,7 +25,7 @@ | |||
275 | 25 | { | 25 | { |
276 | 26 | namespace frontend | 26 | namespace frontend |
277 | 27 | { | 27 | { |
279 | 28 | class SurfaceCreationParameters; | 28 | struct SurfaceCreationParameters; |
280 | 29 | } | 29 | } |
281 | 30 | 30 | ||
282 | 31 | namespace surfaces | 31 | namespace surfaces |
283 | 32 | 32 | ||
284 | === modified file 'include/shared/mir/geometry/forward.h' | |||
285 | --- include/shared/mir/geometry/forward.h 2013-03-07 08:04:05 +0000 | |||
286 | +++ include/shared/mir/geometry/forward.h 2013-03-19 03:30:28 +0000 | |||
287 | @@ -24,10 +24,10 @@ | |||
288 | 24 | namespace geometry | 24 | namespace geometry |
289 | 25 | { | 25 | { |
290 | 26 | // Declarations of geometric concepts I think we'll need | 26 | // Declarations of geometric concepts I think we'll need |
293 | 27 | class Point; | 27 | struct Point; |
294 | 28 | class Size; | 28 | struct Size; |
295 | 29 | class Displacement; | 29 | class Displacement; |
297 | 30 | class Rectangle; | 30 | struct Rectangle; |
298 | 31 | class Region; | 31 | class Region; |
299 | 32 | } | 32 | } |
300 | 33 | } | 33 | } |
301 | 34 | 34 | ||
302 | === modified file 'src/client/client_buffer.h' | |||
303 | --- src/client/client_buffer.h 2013-03-07 08:04:05 +0000 | |||
304 | +++ src/client/client_buffer.h 2013-03-19 03:30:28 +0000 | |||
305 | @@ -28,7 +28,7 @@ | |||
306 | 28 | 28 | ||
307 | 29 | namespace mir_toolkit | 29 | namespace mir_toolkit |
308 | 30 | { | 30 | { |
310 | 31 | class MirBufferPackage; | 31 | struct MirBufferPackage; |
311 | 32 | } | 32 | } |
312 | 33 | 33 | ||
313 | 34 | namespace mir | 34 | namespace mir |
314 | 35 | 35 | ||
315 | === modified file 'src/client/client_buffer_depository.h' | |||
316 | --- src/client/client_buffer_depository.h 2013-03-07 08:04:05 +0000 | |||
317 | +++ src/client/client_buffer_depository.h 2013-03-19 03:30:28 +0000 | |||
318 | @@ -26,7 +26,7 @@ | |||
319 | 26 | 26 | ||
320 | 27 | namespace mir_toolkit | 27 | namespace mir_toolkit |
321 | 28 | { | 28 | { |
323 | 29 | class MirBufferPackage; | 29 | struct MirBufferPackage; |
324 | 30 | } | 30 | } |
325 | 31 | namespace mir | 31 | namespace mir |
326 | 32 | { | 32 | { |
327 | 33 | 33 | ||
328 | === modified file 'src/client/client_context.h' | |||
329 | --- src/client/client_context.h 2013-03-07 08:04:05 +0000 | |||
330 | +++ src/client/client_context.h 2013-03-19 03:30:28 +0000 | |||
331 | @@ -21,8 +21,8 @@ | |||
332 | 21 | 21 | ||
333 | 22 | namespace mir_toolkit | 22 | namespace mir_toolkit |
334 | 23 | { | 23 | { |
337 | 24 | class MirPlatformPackage; | 24 | struct MirPlatformPackage; |
338 | 25 | class MirConnection; | 25 | struct MirConnection; |
339 | 26 | } | 26 | } |
340 | 27 | 27 | ||
341 | 28 | namespace mir | 28 | namespace mir |
342 | 29 | 29 | ||
343 | === modified file 'src/client/mir_connection.h' | |||
344 | --- src/client/mir_connection.h 2013-03-07 08:04:05 +0000 | |||
345 | +++ src/client/mir_connection.h 2013-03-19 03:30:28 +0000 | |||
346 | @@ -44,7 +44,7 @@ | |||
347 | 44 | } | 44 | } |
348 | 45 | } | 45 | } |
349 | 46 | 46 | ||
351 | 47 | class mir_toolkit::MirConnection : public mir::client::ClientContext | 47 | struct mir_toolkit::MirConnection : public mir::client::ClientContext |
352 | 48 | { | 48 | { |
353 | 49 | public: | 49 | public: |
354 | 50 | MirConnection(); | 50 | MirConnection(); |
355 | 51 | 51 | ||
356 | === modified file 'src/client/mir_surface.h' | |||
357 | --- src/client/mir_surface.h 2013-03-07 08:04:05 +0000 | |||
358 | +++ src/client/mir_surface.h 2013-03-19 03:30:28 +0000 | |||
359 | @@ -35,11 +35,11 @@ | |||
360 | 35 | namespace client | 35 | namespace client |
361 | 36 | { | 36 | { |
362 | 37 | class ClientBuffer; | 37 | class ClientBuffer; |
364 | 38 | class MemoryRegion; | 38 | struct MemoryRegion; |
365 | 39 | } | 39 | } |
366 | 40 | } | 40 | } |
367 | 41 | 41 | ||
369 | 42 | class mir_toolkit::MirSurface : public mir::client::ClientSurface | 42 | struct mir_toolkit::MirSurface : public mir::client::ClientSurface |
370 | 43 | { | 43 | { |
371 | 44 | public: | 44 | public: |
372 | 45 | MirSurface(MirSurface const &) = delete; | 45 | MirSurface(MirSurface const &) = delete; |
373 | 46 | 46 | ||
374 | === modified file 'src/client/mir_wait_handle.h' | |||
375 | --- src/client/mir_wait_handle.h 2013-03-08 07:20:43 +0000 | |||
376 | +++ src/client/mir_wait_handle.h 2013-03-19 03:30:28 +0000 | |||
377 | @@ -25,7 +25,7 @@ | |||
378 | 25 | 25 | ||
379 | 26 | namespace mir_toolkit | 26 | namespace mir_toolkit |
380 | 27 | { | 27 | { |
382 | 28 | class MirWaitHandle | 28 | struct MirWaitHandle |
383 | 29 | { | 29 | { |
384 | 30 | public: | 30 | public: |
385 | 31 | MirWaitHandle(); | 31 | MirWaitHandle(); |
386 | 32 | 32 | ||
387 | === modified file 'src/server/frontend/protobuf_socket_communicator.h' | |||
388 | --- src/server/frontend/protobuf_socket_communicator.h 2013-03-07 08:04:05 +0000 | |||
389 | +++ src/server/frontend/protobuf_socket_communicator.h 2013-03-19 03:30:28 +0000 | |||
390 | @@ -25,6 +25,7 @@ | |||
391 | 25 | 25 | ||
392 | 26 | #include <boost/asio.hpp> | 26 | #include <boost/asio.hpp> |
393 | 27 | 27 | ||
394 | 28 | #include <atomic> | ||
395 | 28 | #include <thread> | 29 | #include <thread> |
396 | 29 | #include <string> | 30 | #include <string> |
397 | 30 | #include <vector> | 31 | #include <vector> |
398 | @@ -47,7 +48,7 @@ | |||
399 | 47 | 48 | ||
400 | 48 | namespace detail | 49 | namespace detail |
401 | 49 | { | 50 | { |
403 | 50 | class SocketSession; | 51 | struct SocketSession; |
404 | 51 | } | 52 | } |
405 | 52 | 53 | ||
406 | 53 | class ProtobufSocketCommunicator : public Communicator | 54 | class ProtobufSocketCommunicator : public Communicator |
407 | 54 | 55 | ||
408 | === modified file 'src/server/graphics/gbm/gbm_buffer_allocator.h' | |||
409 | --- src/server/graphics/gbm/gbm_buffer_allocator.h 2013-03-07 08:04:05 +0000 | |||
410 | +++ src/server/graphics/gbm/gbm_buffer_allocator.h 2013-03-19 03:30:28 +0000 | |||
411 | @@ -34,7 +34,7 @@ | |||
412 | 34 | { | 34 | { |
413 | 35 | 35 | ||
414 | 36 | class GBMPlatform; | 36 | class GBMPlatform; |
416 | 37 | class EGLExtensions; | 37 | struct EGLExtensions; |
417 | 38 | 38 | ||
418 | 39 | class GBMBufferAllocator: public compositor::GraphicBufferAllocator | 39 | class GBMBufferAllocator: public compositor::GraphicBufferAllocator |
419 | 40 | { | 40 | { |
420 | 41 | 41 | ||
421 | === modified file 'src/server/graphics/gbm/gbm_display.h' | |||
422 | --- src/server/graphics/gbm/gbm_display.h 2013-03-07 08:04:05 +0000 | |||
423 | +++ src/server/graphics/gbm/gbm_display.h 2013-03-19 03:30:28 +0000 | |||
424 | @@ -30,7 +30,7 @@ | |||
425 | 30 | { | 30 | { |
426 | 31 | namespace geometry | 31 | namespace geometry |
427 | 32 | { | 32 | { |
429 | 33 | class Rectangle; | 33 | struct Rectangle; |
430 | 34 | } | 34 | } |
431 | 35 | namespace graphics | 35 | namespace graphics |
432 | 36 | { | 36 | { |
433 | 37 | 37 | ||
434 | === modified file 'src/server/graphics/gbm/gbm_display_buffer.cpp' | |||
435 | --- src/server/graphics/gbm/gbm_display_buffer.cpp 2013-03-07 08:04:05 +0000 | |||
436 | +++ src/server/graphics/gbm/gbm_display_buffer.cpp 2013-03-19 03:30:28 +0000 | |||
437 | @@ -71,14 +71,6 @@ | |||
438 | 71 | delete bufobj; | 71 | delete bufobj; |
439 | 72 | } | 72 | } |
440 | 73 | 73 | ||
441 | 74 | void page_flip_handler(int /*fd*/, unsigned int /*frame*/, | ||
442 | 75 | unsigned int /*sec*/, unsigned int /*usec*/, | ||
443 | 76 | void* data) | ||
444 | 77 | { | ||
445 | 78 | auto page_flip_pending = static_cast<int*>(data); | ||
446 | 79 | --(*page_flip_pending); | ||
447 | 80 | } | ||
448 | 81 | |||
449 | 82 | void ensure_egl_image_extensions() | 74 | void ensure_egl_image_extensions() |
450 | 83 | { | 75 | { |
451 | 84 | std::string ext_string; | 76 | std::string ext_string; |
452 | 85 | 77 | ||
453 | === modified file 'src/server/graphics/gbm/gbm_display_helpers.h' | |||
454 | --- src/server/graphics/gbm/gbm_display_helpers.h 2013-03-07 08:04:05 +0000 | |||
455 | +++ src/server/graphics/gbm/gbm_display_helpers.h 2013-03-19 03:30:28 +0000 | |||
456 | @@ -25,7 +25,7 @@ | |||
457 | 25 | #include <memory> | 25 | #include <memory> |
458 | 26 | 26 | ||
459 | 27 | #pragma GCC diagnostic push | 27 | #pragma GCC diagnostic push |
461 | 28 | #pragma GCC diagnostic ignored "-pedantic" // Ignore bad syntax in gbm.h | 28 | #pragma GCC diagnostic warning "-Wall" |
462 | 29 | #include <gbm.h> | 29 | #include <gbm.h> |
463 | 30 | #pragma GCC diagnostic pop | 30 | #pragma GCC diagnostic pop |
464 | 31 | 31 | ||
465 | 32 | 32 | ||
466 | === modified file 'src/server/graphics/gbm/kms_display_configuration.cpp' | |||
467 | --- src/server/graphics/gbm/kms_display_configuration.cpp 2013-03-07 08:04:05 +0000 | |||
468 | +++ src/server/graphics/gbm/kms_display_configuration.cpp 2013-03-19 03:30:28 +0000 | |||
469 | @@ -60,7 +60,6 @@ | |||
470 | 60 | } | 60 | } |
471 | 61 | 61 | ||
472 | 62 | mgg::KMSDisplayConfiguration::KMSDisplayConfiguration(int drm_fd) | 62 | mgg::KMSDisplayConfiguration::KMSDisplayConfiguration(int drm_fd) |
473 | 63 | : drm_fd{drm_fd} | ||
474 | 64 | { | 63 | { |
475 | 65 | DRMModeResources resources{drm_fd}; | 64 | DRMModeResources resources{drm_fd}; |
476 | 66 | 65 | ||
477 | 67 | 66 | ||
478 | === modified file 'src/server/graphics/gbm/kms_display_configuration.h' | |||
479 | --- src/server/graphics/gbm/kms_display_configuration.h 2013-03-07 08:04:05 +0000 | |||
480 | +++ src/server/graphics/gbm/kms_display_configuration.h 2013-03-19 03:30:28 +0000 | |||
481 | @@ -47,7 +47,6 @@ | |||
482 | 47 | private: | 47 | private: |
483 | 48 | void add_output(DRMModeResources const& resources, drmModeConnector const& connector); | 48 | void add_output(DRMModeResources const& resources, drmModeConnector const& connector); |
484 | 49 | 49 | ||
485 | 50 | int const drm_fd; | ||
486 | 51 | std::vector<DisplayConfigurationOutput> outputs; | 50 | std::vector<DisplayConfigurationOutput> outputs; |
487 | 52 | }; | 51 | }; |
488 | 53 | 52 | ||
489 | 54 | 53 | ||
490 | === modified file 'tests/CMakeLists.txt' | |||
491 | --- tests/CMakeLists.txt 2013-03-14 21:29:14 +0000 | |||
492 | +++ tests/CMakeLists.txt 2013-03-19 03:30:28 +0000 | |||
493 | @@ -16,6 +16,12 @@ | |||
494 | 16 | ON | 16 | ON |
495 | 17 | ) | 17 | ) |
496 | 18 | 18 | ||
497 | 19 | if ("${CMAKE_CXX_COMPILER}" MATCHES "clang") | ||
498 | 20 | # Avoid clang complaints about poor quality gmock/gtest/cucumber headers | ||
499 | 21 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=null-dereference") | ||
500 | 22 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=overloaded-virtual") | ||
501 | 23 | endif () | ||
502 | 24 | |||
503 | 19 | if(MIR_ENABLE_DEATH_TESTS) | 25 | if(MIR_ENABLE_DEATH_TESTS) |
504 | 20 | add_definitions(-DMIR_DEATH_TESTS_ENABLED) | 26 | add_definitions(-DMIR_DEATH_TESTS_ENABLED) |
505 | 21 | endif(MIR_ENABLE_DEATH_TESTS) | 27 | endif(MIR_ENABLE_DEATH_TESTS) |
506 | 22 | 28 | ||
507 | === modified file 'tests/death-tests/test_application_manager_death.cpp' | |||
508 | --- tests/death-tests/test_application_manager_death.cpp 2013-03-07 08:04:05 +0000 | |||
509 | +++ tests/death-tests/test_application_manager_death.cpp 2013-03-19 03:30:28 +0000 | |||
510 | @@ -30,10 +30,11 @@ | |||
511 | 30 | // ::testing::FLAGS_gtest_death_test_style = "threadsafe"; | 30 | // ::testing::FLAGS_gtest_death_test_style = "threadsafe"; |
512 | 31 | // leads to the test failing under valgrind | 31 | // leads to the test failing under valgrind |
513 | 32 | EXPECT_EXIT( | 32 | EXPECT_EXIT( |
518 | 33 | mir::shell::SessionManager app(std::shared_ptr<msh::SurfaceFactory>(), | 33 | std::shared_ptr<msh::SurfaceFactory> factory; |
519 | 34 | std::shared_ptr<msh::SessionContainer>(), | 34 | mir::shell::SessionManager app(factory, |
520 | 35 | std::shared_ptr<msh::FocusSequence>(), | 35 | std::shared_ptr<msh::SessionContainer>(), |
521 | 36 | std::shared_ptr<msh::FocusSetter>()), | 36 | std::shared_ptr<msh::FocusSequence>(), |
522 | 37 | std::shared_ptr<msh::FocusSetter>()), | ||
523 | 37 | ::testing::KilledBySignal(SIGABRT), | 38 | ::testing::KilledBySignal(SIGABRT), |
524 | 38 | ".*"); | 39 | ".*"); |
525 | 39 | } | 40 | } |
526 | 40 | 41 | ||
527 | === modified file 'tests/integration-tests/test_drm_auth_magic.cpp' | |||
528 | --- tests/integration-tests/test_drm_auth_magic.cpp 2013-03-07 08:04:05 +0000 | |||
529 | +++ tests/integration-tests/test_drm_auth_magic.cpp 2013-03-19 03:30:28 +0000 | |||
530 | @@ -147,7 +147,7 @@ | |||
531 | 147 | TEST_F(BespokeDisplayServerTestFixture, drm_auth_magic_platform_error_reaches_client) | 147 | TEST_F(BespokeDisplayServerTestFixture, drm_auth_magic_platform_error_reaches_client) |
532 | 148 | { | 148 | { |
533 | 149 | unsigned int const magic{0x10111213}; | 149 | unsigned int const magic{0x10111213}; |
535 | 150 | int const auth_magic_error{667}; | 150 | static int const auth_magic_error{667}; |
536 | 151 | 151 | ||
537 | 152 | struct ServerConfig : TestingServerConfiguration | 152 | struct ServerConfig : TestingServerConfiguration |
538 | 153 | { | 153 | { |
539 | 154 | 154 | ||
540 | === modified file 'tests/integration-tests/test_surfaceloop.cpp' | |||
541 | --- tests/integration-tests/test_surfaceloop.cpp 2013-03-07 08:04:05 +0000 | |||
542 | +++ tests/integration-tests/test_surfaceloop.cpp 2013-03-19 03:30:28 +0000 | |||
543 | @@ -248,8 +248,7 @@ | |||
544 | 248 | 248 | ||
545 | 249 | struct ServerConfig : TestingServerConfiguration | 249 | struct ServerConfig : TestingServerConfiguration |
546 | 250 | { | 250 | { |
549 | 251 | std::shared_ptr<mc::BufferAllocationStrategy> the_buffer_allocation_strategy( | 251 | std::shared_ptr<mc::BufferAllocationStrategy> the_buffer_allocation_strategy() |
548 | 252 | std::shared_ptr<mc::GraphicBufferAllocator> const& /*buffer_allocator*/) | ||
550 | 253 | { | 252 | { |
551 | 254 | using namespace testing; | 253 | using namespace testing; |
552 | 255 | 254 | ||
553 | 256 | 255 | ||
554 | === modified file 'tests/mir_test_framework/testing_process_manager.cpp' | |||
555 | --- tests/mir_test_framework/testing_process_manager.cpp 2013-03-12 03:50:42 +0000 | |||
556 | +++ tests/mir_test_framework/testing_process_manager.cpp 2013-03-19 03:30:28 +0000 | |||
557 | @@ -31,18 +31,6 @@ | |||
558 | 31 | namespace mc = mir::compositor; | 31 | namespace mc = mir::compositor; |
559 | 32 | namespace mtf = mir_test_framework; | 32 | namespace mtf = mir_test_framework; |
560 | 33 | 33 | ||
561 | 34 | namespace | ||
562 | 35 | { | ||
563 | 36 | ::testing::AssertionResult WasStarted( | ||
564 | 37 | std::shared_ptr<mtf::Process> const& server_process) | ||
565 | 38 | { | ||
566 | 39 | if (server_process) | ||
567 | 40 | return ::testing::AssertionSuccess() << "server started"; | ||
568 | 41 | else | ||
569 | 42 | return ::testing::AssertionFailure() << "server NOT started"; | ||
570 | 43 | } | ||
571 | 44 | } | ||
572 | 45 | |||
573 | 46 | namespace mir_test_framework | 34 | namespace mir_test_framework |
574 | 47 | { | 35 | { |
575 | 48 | void startup_pause() | 36 | void startup_pause() |
576 | @@ -96,15 +84,11 @@ | |||
577 | 96 | signal_display_server = &server; | 84 | signal_display_server = &server; |
578 | 97 | 85 | ||
579 | 98 | { | 86 | { |
587 | 99 | struct ScopedFuture | 87 | std::future<void> future = std::async(std::launch::async, std::bind(&mir::DisplayServer::run, &server)); |
581 | 100 | { | ||
582 | 101 | std::future<void> future; | ||
583 | 102 | ~ScopedFuture() { future.wait(); } | ||
584 | 103 | } scoped; | ||
585 | 104 | |||
586 | 105 | scoped.future = std::async(std::launch::async, std::bind(&mir::DisplayServer::run, &server)); | ||
588 | 106 | 88 | ||
589 | 107 | config.exec(&server); | 89 | config.exec(&server); |
590 | 90 | |||
591 | 91 | future.wait(); | ||
592 | 108 | } | 92 | } |
593 | 109 | 93 | ||
594 | 110 | config.on_exit(&server); | 94 | config.on_exit(&server); |
595 | 111 | 95 | ||
596 | === modified file 'tests/unit-tests/geometry/test-displacement.cpp' | |||
597 | --- tests/unit-tests/geometry/test-displacement.cpp 2012-09-18 12:09:56 +0000 | |||
598 | +++ tests/unit-tests/geometry/test-displacement.cpp 2013-03-19 03:30:28 +0000 | |||
599 | @@ -26,7 +26,7 @@ | |||
600 | 26 | TEST(geometry, displacement) | 26 | TEST(geometry, displacement) |
601 | 27 | { | 27 | { |
602 | 28 | using namespace geom; | 28 | using namespace geom; |
604 | 29 | Displacement const disp; | 29 | Displacement disp; |
605 | 30 | Displacement const dx2dy4{DeltaX{2}, DeltaY{4}}; | 30 | Displacement const dx2dy4{DeltaX{2}, DeltaY{4}}; |
606 | 31 | 31 | ||
607 | 32 | EXPECT_EQ(DeltaX{0}, disp.dx); | 32 | EXPECT_EQ(DeltaX{0}, disp.dx); |
608 | 33 | 33 | ||
609 | === modified file 'tests/unit-tests/geometry/test-point.cpp' | |||
610 | --- tests/unit-tests/geometry/test-point.cpp 2012-09-18 10:35:52 +0000 | |||
611 | +++ tests/unit-tests/geometry/test-point.cpp 2013-03-19 03:30:28 +0000 | |||
612 | @@ -36,7 +36,7 @@ | |||
613 | 36 | EXPECT_EQ(Y(4), copy.y); | 36 | EXPECT_EQ(Y(4), copy.y); |
614 | 37 | EXPECT_EQ(pointx2y4, copy); | 37 | EXPECT_EQ(pointx2y4, copy); |
615 | 38 | 38 | ||
617 | 39 | Point const defaultValue; | 39 | Point defaultValue; |
618 | 40 | EXPECT_EQ(X(0), defaultValue.x); | 40 | EXPECT_EQ(X(0), defaultValue.x); |
619 | 41 | EXPECT_EQ(Y(0), defaultValue.y); | 41 | EXPECT_EQ(Y(0), defaultValue.y); |
620 | 42 | EXPECT_NE(pointx2y4, defaultValue); | 42 | EXPECT_NE(pointx2y4, defaultValue); |
621 | 43 | 43 | ||
622 | === modified file 'tests/unit-tests/geometry/test-rectangle.cpp' | |||
623 | --- tests/unit-tests/geometry/test-rectangle.cpp 2012-09-18 12:26:17 +0000 | |||
624 | +++ tests/unit-tests/geometry/test-rectangle.cpp 2013-03-19 03:30:28 +0000 | |||
625 | @@ -38,7 +38,7 @@ | |||
626 | 38 | EXPECT_EQ(w2h4, copy.size); | 38 | EXPECT_EQ(w2h4, copy.size); |
627 | 39 | EXPECT_EQ(rect, copy); | 39 | EXPECT_EQ(rect, copy); |
628 | 40 | 40 | ||
630 | 41 | Rectangle const default_rect; | 41 | Rectangle default_rect; |
631 | 42 | EXPECT_EQ(Point(), default_rect.top_left); | 42 | EXPECT_EQ(Point(), default_rect.top_left); |
632 | 43 | EXPECT_EQ(Size(), default_rect.size); | 43 | EXPECT_EQ(Size(), default_rect.size); |
633 | 44 | EXPECT_NE(rect, default_rect); | 44 | EXPECT_NE(rect, default_rect); |
634 | 45 | 45 | ||
635 | === modified file 'tests/unit-tests/graphics/gbm/mock_gbm.h' | |||
636 | --- tests/unit-tests/graphics/gbm/mock_gbm.h 2013-01-31 09:56:11 +0000 | |||
637 | +++ tests/unit-tests/graphics/gbm/mock_gbm.h 2013-03-19 03:30:28 +0000 | |||
638 | @@ -22,7 +22,7 @@ | |||
639 | 22 | #include <gmock/gmock.h> | 22 | #include <gmock/gmock.h> |
640 | 23 | 23 | ||
641 | 24 | #pragma GCC diagnostic push | 24 | #pragma GCC diagnostic push |
643 | 25 | #pragma GCC diagnostic ignored "-pedantic" // Ignore bad syntax in gbm.h | 25 | #pragma GCC diagnostic warning "-Wall" |
644 | 26 | #include <gbm.h> | 26 | #include <gbm.h> |
645 | 27 | #pragma GCC diagnostic pop | 27 | #pragma GCC diagnostic pop |
646 | 28 | 28 |
PASSED: Continuous integration, rev:508 jenkins. qa.ubuntu. com/job/ mir-ci/ 93/ jenkins. qa.ubuntu. com/job/ mir-quantal- amd64-ci/ 94/console jenkins. qa.ubuntu. com/job/ mir-quantal- amd64-ci/ 94/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: jenkins. qa.ubuntu. com/job/ mir-ci/ 93/rebuild
http://