Merge lp:~michihenning/unity-scopes-api/fix-qt-warnings into lp:unity-scopes-api

Proposed by Michi Henning
Status: Merged
Approved by: Paweł Stołowski
Approved revision: 307
Merged at revision: 304
Proposed branch: lp:~michihenning/unity-scopes-api/fix-qt-warnings
Merge into: lp:unity-scopes-api
Diff against target: 584 lines (+93/-25)
39 files modified
demo/client.cpp (+1/-1)
include/unity/scopes/internal/zmq_middleware/ZmqObjectProxy.h (+2/-2)
include/unity/scopes/qt/QActionMetadata.h (+3/-0)
include/unity/scopes/qt/QCannedQuery.h (+3/-0)
include/unity/scopes/qt/QCategory.h (+3/-0)
include/unity/scopes/qt/QColumnLayout.h (+3/-0)
include/unity/scopes/qt/QDepartment.h (+3/-0)
include/unity/scopes/qt/QPreviewReply.h (+3/-0)
include/unity/scopes/qt/QPreviewWidget.h (+3/-0)
include/unity/scopes/qt/QResult.h (+3/-0)
include/unity/scopes/qt/QScopeBaseAPI.h (+2/-2)
include/unity/scopes/qt/QSearchMetadata.h (+3/-0)
include/unity/scopes/qt/QUtils.h (+3/-0)
include/unity/scopes/qt/QVariantBuilder.h (+3/-0)
include/unity/scopes/qt/internal/QActionMetadataImpl.h (+3/-0)
include/unity/scopes/qt/internal/QCannedQueryImpl.h (+3/-0)
include/unity/scopes/qt/internal/QCategoryImpl.h (+3/-0)
include/unity/scopes/qt/internal/QColumnLayoutImpl.h (+3/-0)
include/unity/scopes/qt/internal/QPreviewReplyImpl.h (+3/-0)
include/unity/scopes/qt/internal/QPreviewWidgetImpl.h (+3/-0)
include/unity/scopes/qt/internal/QResultImpl.h (+3/-0)
include/unity/scopes/qt/internal/QScopeVariant.h (+3/-0)
include/unity/scopes/qt/internal/QSearchMetadataImpl.h (+3/-0)
include/unity/scopes/qt/internal/QVariantBuilderImpl.h (+3/-0)
include/unity/scopes/testing/Benchmark.h (+1/-1)
include/unity/scopes/testing/Category.h (+1/-1)
include/unity/scopes/testing/InProcessBenchmark.h (+1/-1)
include/unity/scopes/testing/MockPreviewReply.h (+1/-1)
include/unity/scopes/testing/MockRegistry.h (+1/-1)
include/unity/scopes/testing/MockSearchReply.h (+1/-1)
include/unity/scopes/testing/OutOfProcessBenchmark.h (+1/-1)
include/unity/scopes/testing/Result.h (+1/-1)
include/unity/scopes/testing/ScopeMetadataBuilder.h (+1/-1)
include/unity/scopes/testing/Statistics.h (+1/-1)
include/unity/scopes/testing/TypedScopeFixture.h (+1/-1)
test/gtest/scopes/internal/RuntimeConfig/RuntimeConfig_test.cpp (+11/-6)
test/gtest/scopes/internal/zmq_middleware/ZmqMiddleware/ZmqMiddleware_test.cpp (+1/-1)
test/gtest/scopes/testing/IsolatedScope/scope.h (+1/-1)
test/gtest/scopes/testing/IsolatedScopeBenchmark/scope.h (+1/-1)
To merge this branch: bzr merge lp:~michihenning/unity-scopes-api/fix-qt-warnings
Reviewer Review Type Date Requested Status
Paweł Stołowski (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+248842@code.launchpad.net

Commit message

Fixed a bunch of warnings caused by QVariant headers.
Restored spelling of Thomas Voß's surname.
Fixed test failure in RuntimeConfig caused by a change in the glib .ini parser from Utopic to Vidid. This allows the test to pass on both Utopic and Vivid.
Fixed a few clang warnings.

Description of the change

Fixed a bunch of warnings caused by QVariant headers.
Restored spelling of Thomas Voß's surname.
Fixed test failure in RuntimeConfig caused by a change in the glib .ini parser from Utopic to Vidid. This allows the test to pass on both Utopic and Vivid.
Fixed a few clang warnings.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
307. By Michi Henning

Fixed a few clang warnings.

Revision history for this message
Michi Henning (michihenning) wrote :

I looked through this again, to see whether there is a more elegant way to deal with the Qt warnings (-Wctor-dtor-privacy). We could do this by adding another header that includes QtCore/QVariant.h protected by the #pragma, and then include that new header instead of having the repeated #pragma to suppress the warning wherever we include QtCore/QVariant.h.

The problem with doing this is that we need to include QtCore/QVariant.h in *public* headers, such as unity/scopes/qt/QResult.h. In turn, that would mean to have an artificial header among the public headers, so the hack becomes visible to the user. Once we have added a header file, we cannot remove that header again until the next API (not ABI!) break. In other words, adding such a header pollutes the public API.

On balance, I like the way it is now better (even though it is more verbose) because that keeps the crud in our code, instead of potentially ending up with crud in the customer's code (because they may accidentally include the work-around header we would otherwise have). In terms of maintenance burden, it really isn't a big deal. If the warning disappears in a future version of Qt, it's easy enough to strip out the #pragmas again (and the #pragmas don't do any harm even if we never remove them).

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Paweł Stołowski (stolowski) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'demo/client.cpp'
2--- demo/client.cpp 2014-09-05 08:33:13 +0000
3+++ demo/client.cpp 2015-02-09 02:24:15 +0000
4@@ -257,7 +257,7 @@
5 cout << "\tGot activation response: " << response.status() << endl;
6 }
7
8- void finished(CompletionDetails const& details)
9+ void finished(CompletionDetails const& details) override
10 {
11 cout << "\tActivation finished, status: " << to_string(details.status()) << ", message: " << details.message() << endl;
12 lock_guard<decltype(mutex_)> lock(mutex_);
13
14=== modified file 'include/unity/scopes/internal/zmq_middleware/ZmqObjectProxy.h'
15--- include/unity/scopes/internal/zmq_middleware/ZmqObjectProxy.h 2015-01-05 06:12:01 +0000
16+++ include/unity/scopes/internal/zmq_middleware/ZmqObjectProxy.h 2015-02-09 02:24:15 +0000
17@@ -56,11 +56,11 @@
18 int64_t timeout = -1);
19 virtual ~ZmqObjectProxy();
20
21- virtual ZmqMiddleware* mw_base() const noexcept;
22+ virtual ZmqMiddleware* mw_base() const noexcept override;
23
24 virtual std::string endpoint() const override;
25 virtual std::string identity() const override;
26- std::string target_category() const;
27+ std::string target_category() const override;
28 RequestMode mode() const;
29 virtual int64_t timeout() const noexcept override;
30
31
32=== modified file 'include/unity/scopes/qt/QActionMetadata.h'
33--- include/unity/scopes/qt/QActionMetadata.h 2015-01-26 15:25:30 +0000
34+++ include/unity/scopes/qt/QActionMetadata.h 2015-02-09 02:24:15 +0000
35@@ -19,7 +19,10 @@
36
37 #include <unity/util/DefinesPtrs.h>
38
39+#pragma GCC diagnostic push
40+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
41 #include <QtCore/QVariantMap>
42+#pragma GCC diagnostic pop
43
44 namespace unity
45 {
46
47=== modified file 'include/unity/scopes/qt/QCannedQuery.h'
48--- include/unity/scopes/qt/QCannedQuery.h 2015-01-20 13:59:36 +0000
49+++ include/unity/scopes/qt/QCannedQuery.h 2015-02-09 02:24:15 +0000
50@@ -22,7 +22,10 @@
51 #include <unity/scopes/FilterState.h>
52
53 #include <QtCore/QString>
54+#pragma GCC diagnostic push
55+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
56 #include <QtCore/QVariantMap>
57+#pragma GCC diagnostic pop
58
59 namespace unity
60 {
61
62=== modified file 'include/unity/scopes/qt/QCategory.h'
63--- include/unity/scopes/qt/QCategory.h 2015-01-26 14:13:31 +0000
64+++ include/unity/scopes/qt/QCategory.h 2015-02-09 02:24:15 +0000
65@@ -24,7 +24,10 @@
66 #include <unity/scopes/Category.h>
67
68 #include <QtCore/QString>
69+#pragma GCC diagnostic push
70+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
71 #include <QtCore/QVariantMap>
72+#pragma GCC diagnostic pop
73
74 class QCategorisedResult_test;
75
76
77=== modified file 'include/unity/scopes/qt/QColumnLayout.h'
78--- include/unity/scopes/qt/QColumnLayout.h 2015-01-26 14:13:31 +0000
79+++ include/unity/scopes/qt/QColumnLayout.h 2015-02-09 02:24:15 +0000
80@@ -20,7 +20,10 @@
81
82 #include <unity/util/DefinesPtrs.h>
83
84+#pragma GCC diagnostic push
85+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
86 #include <QtCore/QVariant>
87+#pragma GCC diagnostic pop
88 #include <QtCore/QVector>
89
90 namespace unity
91
92=== modified file 'include/unity/scopes/qt/QDepartment.h'
93--- include/unity/scopes/qt/QDepartment.h 2015-01-20 13:59:36 +0000
94+++ include/unity/scopes/qt/QDepartment.h 2015-02-09 02:24:15 +0000
95@@ -20,7 +20,10 @@
96
97 #include <unity/util/DefinesPtrs.h>
98
99+#pragma GCC diagnostic push
100+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
101 #include <QtCore/QVariantMap>
102+#pragma GCC diagnostic pop
103 #include <QtCore/QString>
104 #include <QtCore/QSharedPointer>
105 #include <QtCore/QScopedPointer>
106
107=== modified file 'include/unity/scopes/qt/QPreviewReply.h'
108--- include/unity/scopes/qt/QPreviewReply.h 2015-01-26 14:13:31 +0000
109+++ include/unity/scopes/qt/QPreviewReply.h 2015-02-09 02:24:15 +0000
110@@ -26,7 +26,10 @@
111 #include <unity/scopes/qt/QColumnLayout.h>
112 #include <unity/scopes/qt/QPreviewWidget.h>
113
114+#pragma GCC diagnostic push
115+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
116 #include <QtCore/QVariant>
117+#pragma GCC diagnostic pop
118 #include <QtCore/QObject>
119
120 namespace unity
121
122=== modified file 'include/unity/scopes/qt/QPreviewWidget.h'
123--- include/unity/scopes/qt/QPreviewWidget.h 2015-01-26 09:27:05 +0000
124+++ include/unity/scopes/qt/QPreviewWidget.h 2015-02-09 02:24:15 +0000
125@@ -21,7 +21,10 @@
126 #include <unity/util/NonCopyable.h>
127 #include <unity/util/DefinesPtrs.h>
128
129+#pragma GCC diagnostic push
130+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
131 #include <QtCore/QVariant>
132+#pragma GCC diagnostic pop
133
134 namespace unity
135 {
136
137=== modified file 'include/unity/scopes/qt/QResult.h'
138--- include/unity/scopes/qt/QResult.h 2015-01-26 15:25:30 +0000
139+++ include/unity/scopes/qt/QResult.h 2015-02-09 02:24:15 +0000
140@@ -23,7 +23,10 @@
141 #include <unity/scopes/ScopeProxyFwd.h>
142
143 #include <QtCore/QString>
144+#pragma GCC diagnostic push
145+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
146 #include <QtCore/QVariant>
147+#pragma GCC diagnostic pop
148
149 namespace unity
150 {
151
152=== modified file 'include/unity/scopes/qt/QScopeBaseAPI.h'
153--- include/unity/scopes/qt/QScopeBaseAPI.h 2015-01-29 10:32:59 +0000
154+++ include/unity/scopes/qt/QScopeBaseAPI.h 2015-02-09 02:24:15 +0000
155@@ -75,7 +75,7 @@
156
157 \param scope_id The name of the scope as defined by the scope's configuration file.
158 */
159- virtual void start(std::string const& scope_id);
160+ virtual void start(std::string const& scope_id) override;
161
162 /**
163 \brief Called by the scopes run time when the scope should shut down.
164@@ -88,7 +88,7 @@
165
166 The call to stop() is made by the same thread that calls the create function and start().
167 */
168- virtual void stop();
169+ virtual void stop() override;
170
171 /**
172 * Called each time a new preview is requested
173
174=== modified file 'include/unity/scopes/qt/QSearchMetadata.h'
175--- include/unity/scopes/qt/QSearchMetadata.h 2015-01-26 15:25:30 +0000
176+++ include/unity/scopes/qt/QSearchMetadata.h 2015-02-09 02:24:15 +0000
177@@ -22,7 +22,10 @@
178 #include <unity/scopes/Location.h>
179
180 #include <QtCore/QString>
181+#pragma GCC diagnostic push
182+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
183 #include <QtCore/QVariantMap>
184+#pragma GCC diagnostic pop
185
186 namespace unity
187 {
188
189=== modified file 'include/unity/scopes/qt/QUtils.h'
190--- include/unity/scopes/qt/QUtils.h 2015-01-20 13:59:36 +0000
191+++ include/unity/scopes/qt/QUtils.h 2015-02-09 02:24:15 +0000
192@@ -18,7 +18,10 @@
193
194 #pragma once
195
196+#pragma GCC diagnostic push
197+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
198 #include <QtCore/QVariant>
199+#pragma GCC diagnostic pop
200 #include <unity/scopes/Variant.h>
201
202 #define EXPORT __attribute__((visibility("default")))
203
204=== modified file 'include/unity/scopes/qt/QVariantBuilder.h'
205--- include/unity/scopes/qt/QVariantBuilder.h 2015-01-26 14:13:31 +0000
206+++ include/unity/scopes/qt/QVariantBuilder.h 2015-02-09 02:24:15 +0000
207@@ -20,7 +20,10 @@
208
209 #include <QtCore/QPair>
210 #include <QtCore/QString>
211+#pragma GCC diagnostic push
212+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
213 #include <QtCore/QVariant>
214+#pragma GCC diagnostic pop
215 #include <QtCore/QVector>
216
217 #include <memory>
218
219=== modified file 'include/unity/scopes/qt/internal/QActionMetadataImpl.h'
220--- include/unity/scopes/qt/internal/QActionMetadataImpl.h 2015-01-26 15:25:30 +0000
221+++ include/unity/scopes/qt/internal/QActionMetadataImpl.h 2015-02-09 02:24:15 +0000
222@@ -19,7 +19,10 @@
223
224 #include <unity/util/DefinesPtrs.h>
225
226+#pragma GCC diagnostic push
227+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
228 #include <QtCore/QVariantMap>
229+#pragma GCC diagnostic pop
230
231 namespace unity
232 {
233
234=== modified file 'include/unity/scopes/qt/internal/QCannedQueryImpl.h'
235--- include/unity/scopes/qt/internal/QCannedQueryImpl.h 2015-01-26 14:13:31 +0000
236+++ include/unity/scopes/qt/internal/QCannedQueryImpl.h 2015-02-09 02:24:15 +0000
237@@ -22,7 +22,10 @@
238 #include <unity/scopes/FilterState.h>
239
240 #include <QtCore/QString>
241+#pragma GCC diagnostic push
242+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
243 #include <QtCore/QVariantMap>
244+#pragma GCC diagnostic pop
245
246 namespace unity
247 {
248
249=== modified file 'include/unity/scopes/qt/internal/QCategoryImpl.h'
250--- include/unity/scopes/qt/internal/QCategoryImpl.h 2015-01-26 14:13:31 +0000
251+++ include/unity/scopes/qt/internal/QCategoryImpl.h 2015-02-09 02:24:15 +0000
252@@ -24,7 +24,10 @@
253 #include <unity/scopes/Category.h>
254
255 #include <QtCore/QString>
256+#pragma GCC diagnostic push
257+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
258 #include <QtCore/QVariantMap>
259+#pragma GCC diagnostic pop
260
261 namespace unity
262 {
263
264=== modified file 'include/unity/scopes/qt/internal/QColumnLayoutImpl.h'
265--- include/unity/scopes/qt/internal/QColumnLayoutImpl.h 2015-01-26 14:13:31 +0000
266+++ include/unity/scopes/qt/internal/QColumnLayoutImpl.h 2015-02-09 02:24:15 +0000
267@@ -22,7 +22,10 @@
268
269 #include <unity/util/DefinesPtrs.h>
270
271+#pragma GCC diagnostic push
272+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
273 #include <QtCore/QVariant>
274+#pragma GCC diagnostic pop
275 #include <QtCore/QVector>
276
277 namespace unity
278
279=== modified file 'include/unity/scopes/qt/internal/QPreviewReplyImpl.h'
280--- include/unity/scopes/qt/internal/QPreviewReplyImpl.h 2015-02-02 07:46:12 +0000
281+++ include/unity/scopes/qt/internal/QPreviewReplyImpl.h 2015-02-09 02:24:15 +0000
282@@ -27,7 +27,10 @@
283 #include <unity/scopes/qt/QColumnLayout.h>
284 #include <unity/scopes/qt/QPreviewWidget.h>
285
286+#pragma GCC diagnostic push
287+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
288 #include <QtCore/QVariant>
289+#pragma GCC diagnostic pop
290
291 namespace unity
292 {
293
294=== modified file 'include/unity/scopes/qt/internal/QPreviewWidgetImpl.h'
295--- include/unity/scopes/qt/internal/QPreviewWidgetImpl.h 2015-01-20 14:14:26 +0000
296+++ include/unity/scopes/qt/internal/QPreviewWidgetImpl.h 2015-02-09 02:24:15 +0000
297@@ -21,7 +21,10 @@
298 #include <unity/util/NonCopyable.h>
299 #include <unity/util/DefinesPtrs.h>
300
301+#pragma GCC diagnostic push
302+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
303 #include <QtCore/QVariant>
304+#pragma GCC diagnostic pop
305
306 namespace unity
307 {
308
309=== modified file 'include/unity/scopes/qt/internal/QResultImpl.h'
310--- include/unity/scopes/qt/internal/QResultImpl.h 2015-01-26 15:25:30 +0000
311+++ include/unity/scopes/qt/internal/QResultImpl.h 2015-02-09 02:24:15 +0000
312@@ -23,7 +23,10 @@
313 #include <unity/scopes/ScopeProxyFwd.h>
314
315 #include <QtCore/QString>
316+#pragma GCC diagnostic push
317+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
318 #include <QtCore/QVariantMap>
319+#pragma GCC diagnostic pop
320
321 class QVariant;
322
323
324=== modified file 'include/unity/scopes/qt/internal/QScopeVariant.h'
325--- include/unity/scopes/qt/internal/QScopeVariant.h 2015-01-26 15:25:30 +0000
326+++ include/unity/scopes/qt/internal/QScopeVariant.h 2015-02-09 02:24:15 +0000
327@@ -18,7 +18,10 @@
328
329 #pragma once
330
331+#pragma GCC diagnostic push
332+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
333 #include <QtCore/QVariantMap>
334+#pragma GCC diagnostic pop
335 #include <QtCore/QString>
336
337 namespace unity
338
339=== modified file 'include/unity/scopes/qt/internal/QSearchMetadataImpl.h'
340--- include/unity/scopes/qt/internal/QSearchMetadataImpl.h 2015-01-26 15:25:30 +0000
341+++ include/unity/scopes/qt/internal/QSearchMetadataImpl.h 2015-02-09 02:24:15 +0000
342@@ -22,7 +22,10 @@
343 #include <unity/scopes/Location.h>
344
345 #include <QtCore/QString>
346+#pragma GCC diagnostic push
347+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
348 #include <QtCore/QVariant>
349+#pragma GCC diagnostic pop
350
351 namespace unity
352 {
353
354=== modified file 'include/unity/scopes/qt/internal/QVariantBuilderImpl.h'
355--- include/unity/scopes/qt/internal/QVariantBuilderImpl.h 2015-01-26 14:13:31 +0000
356+++ include/unity/scopes/qt/internal/QVariantBuilderImpl.h 2015-02-09 02:24:15 +0000
357@@ -22,7 +22,10 @@
358
359 #include <QtCore/QPair>
360 #include <QtCore/QString>
361+#pragma GCC diagnostic push
362+#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
363 #include <QtCore/QVariant>
364+#pragma GCC diagnostic pop
365 #include <QtCore/QVector>
366
367 #include <memory>
368
369=== modified file 'include/unity/scopes/testing/Benchmark.h'
370--- include/unity/scopes/testing/Benchmark.h 2015-02-04 20:57:38 +0000
371+++ include/unity/scopes/testing/Benchmark.h 2015-02-09 02:24:15 +0000
372@@ -13,7 +13,7 @@
373 * You should have received a copy of the GNU Lesser General Public License
374 * along with this program. If not, see <http://www.gnu.org/licenses/>.
375 *
376- * Authored by: Thomas Voss <thomas.voss@canonical.com>
377+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
378 */
379
380 #pragma once
381
382=== modified file 'include/unity/scopes/testing/Category.h'
383--- include/unity/scopes/testing/Category.h 2015-02-04 20:57:38 +0000
384+++ include/unity/scopes/testing/Category.h 2015-02-09 02:24:15 +0000
385@@ -13,7 +13,7 @@
386 * You should have received a copy of the GNU Lesser General Public License
387 * along with this program. If not, see <http://www.gnu.org/licenses/>.
388 *
389- * Authored by: Thomas Voss <thomas.voss@canonical.com>
390+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
391 */
392
393 #pragma once
394
395=== modified file 'include/unity/scopes/testing/InProcessBenchmark.h'
396--- include/unity/scopes/testing/InProcessBenchmark.h 2015-02-04 20:57:38 +0000
397+++ include/unity/scopes/testing/InProcessBenchmark.h 2015-02-09 02:24:15 +0000
398@@ -13,7 +13,7 @@
399 * You should have received a copy of the GNU Lesser General Public License
400 * along with this program. If not, see <http://www.gnu.org/licenses/>.
401 *
402- * Authored by: Thomas Voss <thomas.voss@canonical.com>
403+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
404 */
405
406 #pragma once
407
408=== modified file 'include/unity/scopes/testing/MockPreviewReply.h'
409--- include/unity/scopes/testing/MockPreviewReply.h 2015-02-04 20:57:38 +0000
410+++ include/unity/scopes/testing/MockPreviewReply.h 2015-02-09 02:24:15 +0000
411@@ -13,7 +13,7 @@
412 * You should have received a copy of the GNU Lesser General Public License
413 * along with this program. If not, see <http://www.gnu.org/licenses/>.
414 *
415- * Authored by: Thomas Voss <thomas.voss@canonical.com>
416+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
417 */
418
419 #pragma once
420
421=== modified file 'include/unity/scopes/testing/MockRegistry.h'
422--- include/unity/scopes/testing/MockRegistry.h 2015-02-04 20:57:38 +0000
423+++ include/unity/scopes/testing/MockRegistry.h 2015-02-09 02:24:15 +0000
424@@ -13,7 +13,7 @@
425 * You should have received a copy of the GNU Lesser General Public License
426 * along with this program. If not, see <http://www.gnu.org/licenses/>.
427 *
428- * Authored by: Thomas Voss <thomas.voss@canonical.com>
429+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
430 */
431
432 #pragma once
433
434=== modified file 'include/unity/scopes/testing/MockSearchReply.h'
435--- include/unity/scopes/testing/MockSearchReply.h 2015-02-04 20:57:38 +0000
436+++ include/unity/scopes/testing/MockSearchReply.h 2015-02-09 02:24:15 +0000
437@@ -13,7 +13,7 @@
438 * You should have received a copy of the GNU Lesser General Public License
439 * along with this program. If not, see <http://www.gnu.org/licenses/>.
440 *
441- * Authored by: Thomas Voss <thomas.voss@canonical.com>
442+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
443 */
444
445 #pragma once
446
447=== modified file 'include/unity/scopes/testing/OutOfProcessBenchmark.h'
448--- include/unity/scopes/testing/OutOfProcessBenchmark.h 2015-02-04 20:57:38 +0000
449+++ include/unity/scopes/testing/OutOfProcessBenchmark.h 2015-02-09 02:24:15 +0000
450@@ -13,7 +13,7 @@
451 * You should have received a copy of the GNU Lesser General Public License
452 * along with this program. If not, see <http://www.gnu.org/licenses/>.
453 *
454- * Authored by: Thomas Voss <thomas.voss@canonical.com>
455+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
456 */
457
458 #pragma once
459
460=== modified file 'include/unity/scopes/testing/Result.h'
461--- include/unity/scopes/testing/Result.h 2015-02-04 20:57:38 +0000
462+++ include/unity/scopes/testing/Result.h 2015-02-09 02:24:15 +0000
463@@ -13,7 +13,7 @@
464 * You should have received a copy of the GNU Lesser General Public License
465 * along with this program. If not, see <http://www.gnu.org/licenses/>.
466 *
467- * Authored by: Thomas Voss <thomas.voss@canonical.com>
468+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
469 */
470
471 #pragma once
472
473=== modified file 'include/unity/scopes/testing/ScopeMetadataBuilder.h'
474--- include/unity/scopes/testing/ScopeMetadataBuilder.h 2015-02-05 14:57:01 +0000
475+++ include/unity/scopes/testing/ScopeMetadataBuilder.h 2015-02-09 02:24:15 +0000
476@@ -13,7 +13,7 @@
477 * You should have received a copy of the GNU Lesser General Public License
478 * along with this program. If not, see <http://www.gnu.org/licenses/>.
479 *
480- * Authored by: Thomas Voss <thomas.voss@canonical.com>
481+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
482 */
483
484 #pragma once
485
486=== modified file 'include/unity/scopes/testing/Statistics.h'
487--- include/unity/scopes/testing/Statistics.h 2015-02-04 20:57:38 +0000
488+++ include/unity/scopes/testing/Statistics.h 2015-02-09 02:24:15 +0000
489@@ -13,7 +13,7 @@
490 * You should have received a copy of the GNU Lesser General Public License
491 * along with this program. If not, see <http://www.gnu.org/licenses/>.
492 *
493- * Authored by: Thomas Voss <thomas.voss@canonical.com>
494+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
495 */
496
497 #pragma once
498
499=== modified file 'include/unity/scopes/testing/TypedScopeFixture.h'
500--- include/unity/scopes/testing/TypedScopeFixture.h 2015-02-04 20:57:38 +0000
501+++ include/unity/scopes/testing/TypedScopeFixture.h 2015-02-09 02:24:15 +0000
502@@ -13,7 +13,7 @@
503 * You should have received a copy of the GNU Lesser General Public License
504 * along with this program. If not, see <http://www.gnu.org/licenses/>.
505 *
506- * Authored by: Thomas Voss <thomas.voss@canonical.com>
507+ * Authored by: Thomas Voß <thomas.voss@canonical.com>
508 */
509
510 #pragma once
511
512=== modified file 'test/gtest/scopes/internal/RuntimeConfig/RuntimeConfig_test.cpp'
513--- test/gtest/scopes/internal/RuntimeConfig/RuntimeConfig_test.cpp 2015-01-09 03:16:51 +0000
514+++ test/gtest/scopes/internal/RuntimeConfig/RuntimeConfig_test.cpp 2015-02-09 02:24:15 +0000
515@@ -23,6 +23,8 @@
516
517 #include <unity/UnityExceptions.h>
518
519+#include <boost/regex.hpp> // Use Boost implementation until http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53631 is fixed.
520+
521 #include <gtest/gtest.h>
522
523 using namespace std;
524@@ -230,12 +232,15 @@
525 }
526 catch (ConfigException const& e)
527 {
528- EXPECT_STREQ( "unity::scopes::ConfigException: \"" TEST_SRC_DIR "/NoLogDir.ini\": "
529- "No LogDir configured and failed to get default:\n"
530- " unity::ResourceException: RuntimeConfig::default_log_directory(): $HOME not set:\n"
531- " unity::LogicException: Could not get string value (" TEST_SRC_DIR "/NoLogDir.ini, "
532- "group: Runtime): Key file does not have key 'LogDir' in group 'Runtime'",
533- e.what());
534+ // Using regex here because error message returned by glib changed from Utopic to Vivid.
535+ // The final .* takes care of the difference. Note that, instead of using TEST_SRC_DIR, we
536+ // use .+. That's because, when building with bzr bd, we end up with a '+' in the path,
537+ // and that is a regex metacharacter, causing the match to fail.
538+ boost::regex r("unity::scopes::ConfigException: \".+/NoLogDir.ini\": "
539+ "No LogDir configured and failed to get default:\\n"
540+ " unity::ResourceException: RuntimeConfig::default_log_directory\\(\\): \\$HOME not set:\\n"
541+ " unity::LogicException: Could not get string value \\(.+/NoLogDir.ini, .*");
542+ EXPECT_TRUE(boost::regex_match(e.what(), r)) << e.what();
543 }
544
545 try
546
547=== modified file 'test/gtest/scopes/internal/zmq_middleware/ZmqMiddleware/ZmqMiddleware_test.cpp'
548--- test/gtest/scopes/internal/zmq_middleware/ZmqMiddleware/ZmqMiddleware_test.cpp 2015-01-26 08:20:45 +0000
549+++ test/gtest/scopes/internal/zmq_middleware/ZmqMiddleware/ZmqMiddleware_test.cpp 2015-02-09 02:24:15 +0000
550@@ -431,7 +431,7 @@
551 virtual MWQueryCtrlProxy activate(Result const&,
552 ActionMetadata const&,
553 MWReplyProxy const&,
554- InvokeInfo const&)
555+ InvokeInfo const&) override
556 {
557 return nullptr;
558 }
559
560=== modified file 'test/gtest/scopes/testing/IsolatedScope/scope.h'
561--- test/gtest/scopes/testing/IsolatedScope/scope.h 2015-02-04 20:57:38 +0000
562+++ test/gtest/scopes/testing/IsolatedScope/scope.h 2015-02-09 02:24:15 +0000
563@@ -14,7 +14,7 @@
564 * along with this program. If not, see <http://www.gnu.org/licenses/>.
565 *
566 * Authored by: James Henstridge <james.henstridge@canonical.com>
567- * Thomas Voss <thomas.voss@canonical.com>
568+ * Thomas Voß <thomas.voss@canonical.com>
569 */
570
571 #include <unity/scopes/ScopeBase.h>
572
573=== modified file 'test/gtest/scopes/testing/IsolatedScopeBenchmark/scope.h'
574--- test/gtest/scopes/testing/IsolatedScopeBenchmark/scope.h 2015-02-04 20:57:38 +0000
575+++ test/gtest/scopes/testing/IsolatedScopeBenchmark/scope.h 2015-02-09 02:24:15 +0000
576@@ -14,7 +14,7 @@
577 * along with this program. If not, see <http://www.gnu.org/licenses/>.
578 *
579 * Authored by: James Henstridge <james.henstridge@canonical.com>
580- * Thomas Voss <thomas.voss@canonical.com>
581+ * Thomas Voß <thomas.voss@canonical.com>
582 */
583
584 #include <unity/scopes/ScopeBase.h>

Subscribers

People subscribed via source and target branches

to all changes: