Merge lp:~bregma/unity/lp-1430784 into lp:unity
- lp-1430784
- Merge into trunk
Proposed by
Stephen M. Webb
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Christopher Townsend | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 3934 | ||||
Proposed branch: | lp:~bregma/unity/lp-1430784 | ||||
Merge into: | lp:unity | ||||
Diff against target: |
390 lines (+78/-14) 14 files modified
hud/HudController.cpp (+1/-1) tests/test_application_launcher_icon.cpp (+6/-1) tests/test_desktop_application_subject.cpp (+6/-1) tests/test_glib_dbus_server.cpp (+5/-0) tests/test_gnome_session_manager.cpp (+6/-1) tests/test_im_text_entry.cpp (+6/-1) tests/test_launcher_hide_machine.cpp (+6/-1) tests/test_launcher_hover_machine.cpp (+5/-0) tests/test_launcher_icon.cpp (+6/-1) tests/test_panel_menu_view.cpp (+6/-1) tests/test_session_button.cpp (+7/-2) tests/test_session_controller.cpp (+7/-2) tests/test_software_center_launcher_icon.cpp (+6/-1) tests/test_switcher_view.cpp (+5/-1) |
||||
To merge this branch: | bzr merge lp:~bregma/unity/lp-1430784 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christopher Townsend | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+252898@code.launchpad.net |
Commit message
silenced GCC 5 warnings
Description of the change
Tweaks to the code to silence new warnings from GCC 5 (which with -Werror cause FTBFS).
Most of the problems are from code generated by Google Test macros resulting in -Wunused-variable warnings. I fixed these by adding #pragma push/pop around the offending macro instantiations in the test code.
To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : | # |
review:
Approve
(continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote : | # |
Code looks fine. I'll trust that it compiles now with gcc5 since you would not have proposed this unless it compiled in your pbuilder:)
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'hud/HudController.cpp' | |||
2 | --- hud/HudController.cpp 2014-07-11 01:45:49 +0000 | |||
3 | +++ hud/HudController.cpp 2015-03-13 14:15:34 +0000 | |||
4 | @@ -157,7 +157,7 @@ | |||
5 | 157 | view_->search_activated.connect(sigc::mem_fun(this, &Controller::OnSearchActivated)); | 157 | view_->search_activated.connect(sigc::mem_fun(this, &Controller::OnSearchActivated)); |
6 | 158 | view_->query_activated.connect(sigc::mem_fun(this, &Controller::OnQueryActivated)); | 158 | view_->query_activated.connect(sigc::mem_fun(this, &Controller::OnQueryActivated)); |
7 | 159 | view_->query_selected.connect(sigc::mem_fun(this, &Controller::OnQuerySelected)); | 159 | view_->query_selected.connect(sigc::mem_fun(this, &Controller::OnQuerySelected)); |
9 | 160 | view_->layout_changed.connect(sigc::bind(sigc::mem_fun(this, &Controller::Relayout), nullptr)); | 160 | view_->layout_changed.connect(sigc::bind(sigc::mem_fun(this, &Controller::Relayout), false)); |
10 | 161 | // Add to the debug introspection. | 161 | // Add to the debug introspection. |
11 | 162 | AddChild(view_); | 162 | AddChild(view_); |
12 | 163 | } | 163 | } |
13 | 164 | 164 | ||
14 | === modified file 'tests/test_application_launcher_icon.cpp' | |||
15 | --- tests/test_application_launcher_icon.cpp 2014-03-12 23:44:57 +0000 | |||
16 | +++ tests/test_application_launcher_icon.cpp 2015-03-13 14:15:34 +0000 | |||
17 | @@ -1,5 +1,5 @@ | |||
18 | 1 | /* | 1 | /* |
20 | 2 | * Copyright 2012 Canonical Ltd. | 2 | * Copyright 2012,2015 Canonical Ltd. |
21 | 3 | * | 3 | * |
22 | 4 | * This program is free software: you can redistribute it and/or modify it | 4 | * This program is free software: you can redistribute it and/or modify it |
23 | 5 | * under the terms of the GNU General Public License version 3, as published | 5 | * under the terms of the GNU General Public License version 3, as published |
24 | @@ -1012,6 +1012,9 @@ | |||
25 | 1012 | virtual ~QuitLabel() {} | 1012 | virtual ~QuitLabel() {} |
26 | 1013 | }; | 1013 | }; |
27 | 1014 | 1014 | ||
28 | 1015 | #pragma GCC diagnostic push | ||
29 | 1016 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
30 | 1017 | |||
31 | 1015 | INSTANTIATE_TEST_CASE_P(TestApplicationLauncherIcon, QuitLabel, testing::Values("Quit", "Exit", "Close")); | 1018 | INSTANTIATE_TEST_CASE_P(TestApplicationLauncherIcon, QuitLabel, testing::Values("Quit", "Exit", "Close")); |
32 | 1016 | 1019 | ||
33 | 1017 | TEST_P(/*TestApplicationLauncherIcon*/QuitLabel, QuicklistMenuItemRemoteOverridesQuitByLabelNotRunning) | 1020 | TEST_P(/*TestApplicationLauncherIcon*/QuitLabel, QuicklistMenuItemRemoteOverridesQuitByLabelNotRunning) |
34 | @@ -1059,6 +1062,8 @@ | |||
35 | 1059 | EXPECT_TRUE(cb_called); | 1062 | EXPECT_TRUE(cb_called); |
36 | 1060 | } | 1063 | } |
37 | 1061 | 1064 | ||
38 | 1065 | #pragma GCC diagnostic pop | ||
39 | 1066 | |||
40 | 1062 | TEST_F(TestApplicationLauncherIcon, QuicklistMenuItemRemoteOverridesQuitByPropertyNotRunning) | 1067 | TEST_F(TestApplicationLauncherIcon, QuicklistMenuItemRemoteOverridesQuitByPropertyNotRunning) |
41 | 1063 | { | 1068 | { |
42 | 1064 | mock_app->SetRunState(false); | 1069 | mock_app->SetRunState(false); |
43 | 1065 | 1070 | ||
44 | === modified file 'tests/test_desktop_application_subject.cpp' | |||
45 | --- tests/test_desktop_application_subject.cpp 2013-09-05 17:50:54 +0000 | |||
46 | +++ tests/test_desktop_application_subject.cpp 2015-03-13 14:15:34 +0000 | |||
47 | @@ -1,5 +1,5 @@ | |||
48 | 1 | /* | 1 | /* |
50 | 2 | * Copyright 2013 Canonical Ltd. | 2 | * Copyright 2013,2015 Canonical Ltd. |
51 | 3 | * | 3 | * |
52 | 4 | * This program is free software: you can redistribute it and/or modify it | 4 | * This program is free software: you can redistribute it and/or modify it |
53 | 5 | * under the terms of the GNU General Public License version 3, as published | 5 | * under the terms of the GNU General Public License version 3, as published |
54 | @@ -32,6 +32,9 @@ | |||
55 | 32 | ApplicationSubject subject; | 32 | ApplicationSubject subject; |
56 | 33 | }; | 33 | }; |
57 | 34 | 34 | ||
58 | 35 | #pragma GCC diagnostic push | ||
59 | 36 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
60 | 37 | |||
61 | 35 | struct Property : TestDestkopApplicationSubject, testing::WithParamInterface<std::string> {}; | 38 | struct Property : TestDestkopApplicationSubject, testing::WithParamInterface<std::string> {}; |
62 | 36 | INSTANTIATE_TEST_CASE_P(TestDestkopApplicationSubject, Property, testing::Values("Fooo", "Bar", "Unity")); | 39 | INSTANTIATE_TEST_CASE_P(TestDestkopApplicationSubject, Property, testing::Values("Fooo", "Bar", "Unity")); |
63 | 37 | 40 | ||
64 | @@ -275,4 +278,6 @@ | |||
65 | 275 | EXPECT_EQ(mock_subject, copy_subject); | 278 | EXPECT_EQ(mock_subject, copy_subject); |
66 | 276 | } | 279 | } |
67 | 277 | 280 | ||
68 | 281 | #pragma GCC diagnostic pop | ||
69 | 282 | |||
70 | 278 | } // anonymous namespace | 283 | } // anonymous namespace |
71 | 279 | 284 | ||
72 | === modified file 'tests/test_glib_dbus_server.cpp' | |||
73 | --- tests/test_glib_dbus_server.cpp 2013-03-25 14:48:16 +0000 | |||
74 | +++ tests/test_glib_dbus_server.cpp 2015-03-13 14:15:34 +0000 | |||
75 | @@ -433,6 +433,9 @@ | |||
76 | 433 | EXPECT_TRUE(signal_got); | 433 | EXPECT_TRUE(signal_got); |
77 | 434 | } | 434 | } |
78 | 435 | 435 | ||
79 | 436 | #pragma GCC diagnostic push | ||
80 | 437 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
81 | 438 | |||
82 | 436 | struct ReadableProperties : TestGLibDBusServerInteractions, testing::WithParamInterface<std::string> {}; | 439 | struct ReadableProperties : TestGLibDBusServerInteractions, testing::WithParamInterface<std::string> {}; |
83 | 437 | INSTANTIATE_TEST_CASE_P(TestGLibDBusServerInteractions, ReadableProperties, testing::Values("ReadOnlyProperty", "ReadWriteProperty")); | 440 | INSTANTIATE_TEST_CASE_P(TestGLibDBusServerInteractions, ReadableProperties, testing::Values("ReadOnlyProperty", "ReadWriteProperty")); |
84 | 438 | 441 | ||
85 | @@ -510,4 +513,6 @@ | |||
86 | 510 | EXPECT_EQ(value, new_value); | 513 | EXPECT_EQ(value, new_value); |
87 | 511 | } | 514 | } |
88 | 512 | 515 | ||
89 | 516 | #pragma GCC diagnostic pop | ||
90 | 517 | |||
91 | 513 | } // Namespace | 518 | } // Namespace |
92 | 514 | 519 | ||
93 | === modified file 'tests/test_gnome_session_manager.cpp' | |||
94 | --- tests/test_gnome_session_manager.cpp 2014-04-06 10:10:41 +0000 | |||
95 | +++ tests/test_gnome_session_manager.cpp 2015-03-13 14:15:34 +0000 | |||
96 | @@ -1,6 +1,6 @@ | |||
97 | 1 | // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- | 1 | // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- |
98 | 2 | /* | 2 | /* |
100 | 3 | * Copyright (C) 2013 Canonical Ltd | 3 | * Copyright (C) 2013,2015 Canonical Ltd |
101 | 4 | * | 4 | * |
102 | 5 | * This program is free software: you can redistribute it and/or modify | 5 | * This program is free software: you can redistribute it and/or modify |
103 | 6 | * it under the terms of the GNU General Public License version 3 as | 6 | * it under the terms of the GNU General Public License version 3 as |
104 | @@ -709,6 +709,9 @@ | |||
105 | 709 | EXPECT_TRUE(cancelled); | 709 | EXPECT_TRUE(cancelled); |
106 | 710 | } | 710 | } |
107 | 711 | 711 | ||
108 | 712 | #pragma GCC diagnostic push | ||
109 | 713 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
110 | 714 | |||
111 | 712 | struct InteractiveMode : TestGnomeSessionManager, testing::WithParamInterface<bool> {}; | 715 | struct InteractiveMode : TestGnomeSessionManager, testing::WithParamInterface<bool> {}; |
112 | 713 | INSTANTIATE_TEST_CASE_P(TestGnomeSessionManager, InteractiveMode, testing::Bool()); | 716 | INSTANTIATE_TEST_CASE_P(TestGnomeSessionManager, InteractiveMode, testing::Bool()); |
113 | 714 | 717 | ||
114 | @@ -921,6 +924,8 @@ | |||
115 | 921 | EXPECT_FALSE(cancelled); | 924 | EXPECT_FALSE(cancelled); |
116 | 922 | } | 925 | } |
117 | 923 | 926 | ||
118 | 927 | #pragma GCC diagnostic pop | ||
119 | 928 | |||
120 | 924 | TEST_F(TestGnomeSessionManager, ImmediateReboot) | 929 | TEST_F(TestGnomeSessionManager, ImmediateReboot) |
121 | 925 | { | 930 | { |
122 | 926 | EnableInteractiveShutdown(false); | 931 | EnableInteractiveShutdown(false); |
123 | 927 | 932 | ||
124 | === modified file 'tests/test_im_text_entry.cpp' | |||
125 | --- tests/test_im_text_entry.cpp 2013-11-06 11:21:43 +0000 | |||
126 | +++ tests/test_im_text_entry.cpp 2015-03-13 14:15:34 +0000 | |||
127 | @@ -1,5 +1,5 @@ | |||
128 | 1 | /* | 1 | /* |
130 | 2 | * Copyright 2012-2013 Canonical Ltd. | 2 | * Copyright 2012,2013,2015 Canonical Ltd. |
131 | 3 | * | 3 | * |
132 | 4 | * This program is free software: you can redistribute it and/or modify it | 4 | * This program is free software: you can redistribute it and/or modify it |
133 | 5 | * under the terms of the GNU Lesser General Public License version 3, as | 5 | * under the terms of the GNU Lesser General Public License version 3, as |
134 | @@ -156,6 +156,9 @@ | |||
135 | 156 | EXPECT_EQ(EventNativelyHandled(), text_entry.InspectKeyEvent(selectall)); | 156 | EXPECT_EQ(EventNativelyHandled(), text_entry.InspectKeyEvent(selectall)); |
136 | 157 | } | 157 | } |
137 | 158 | 158 | ||
138 | 159 | #pragma GCC diagnostic push | ||
139 | 160 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
140 | 161 | |||
141 | 159 | struct CtrlKeybindings : TestIMTextEntry, testing::WithParamInterface<unsigned long> {}; | 162 | struct CtrlKeybindings : TestIMTextEntry, testing::WithParamInterface<unsigned long> {}; |
142 | 160 | INSTANTIATE_TEST_CASE_P(TestIMTextEntry, CtrlKeybindings, testing::Values(NUX_VK_a, NUX_VK_BACKSPACE, | 163 | INSTANTIATE_TEST_CASE_P(TestIMTextEntry, CtrlKeybindings, testing::Values(NUX_VK_a, NUX_VK_BACKSPACE, |
143 | 161 | NUX_VK_LEFT, NUX_VK_RIGHT, | 164 | NUX_VK_LEFT, NUX_VK_RIGHT, |
144 | @@ -168,6 +171,8 @@ | |||
145 | 168 | EXPECT_EQ(EventNativelyHandled(), text_entry.InspectKeyEvent(event)); | 171 | EXPECT_EQ(EventNativelyHandled(), text_entry.InspectKeyEvent(event)); |
146 | 169 | } | 172 | } |
147 | 170 | 173 | ||
148 | 174 | #pragma GCC diagnostic pop | ||
149 | 175 | |||
150 | 171 | TEST_F(TestIMTextEntry, AltKeybindings) | 176 | TEST_F(TestIMTextEntry, AltKeybindings) |
151 | 172 | { | 177 | { |
152 | 173 | for (unsigned long keysym = 0; keysym < XK_umacron; ++keysym) | 178 | for (unsigned long keysym = 0; keysym < XK_umacron; ++keysym) |
153 | 174 | 179 | ||
154 | === modified file 'tests/test_launcher_hide_machine.cpp' | |||
155 | --- tests/test_launcher_hide_machine.cpp 2013-10-18 18:48:25 +0000 | |||
156 | +++ tests/test_launcher_hide_machine.cpp 2015-03-13 14:15:34 +0000 | |||
157 | @@ -1,6 +1,6 @@ | |||
158 | 1 | // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- | 1 | // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- |
159 | 2 | /* | 2 | /* |
161 | 3 | * Copyright (C) 2012 Canonical Ltd | 3 | * Copyright (C) 2012,2015 Canonical Ltd |
162 | 4 | * | 4 | * |
163 | 5 | * This program is free software: you can redistribute it and/or modify | 5 | * This program is free software: you can redistribute it and/or modify |
164 | 6 | * it under the terms of the GNU General Public License version 3 as | 6 | * it under the terms of the GNU General Public License version 3 as |
165 | @@ -48,6 +48,9 @@ | |||
166 | 48 | ul::LauncherHideMachine machine; | 48 | ul::LauncherHideMachine machine; |
167 | 49 | }; | 49 | }; |
168 | 50 | 50 | ||
169 | 51 | #pragma GCC diagnostic push | ||
170 | 52 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
171 | 53 | |||
172 | 51 | TEST_P(HideModeNever, Bool2Bool) { | 54 | TEST_P(HideModeNever, Bool2Bool) { |
173 | 52 | auto quirk = std::tr1::get<0>(GetParam()); | 55 | auto quirk = std::tr1::get<0>(GetParam()); |
174 | 53 | bool initial_value = std::tr1::get<1>(GetParam()); | 56 | bool initial_value = std::tr1::get<1>(GetParam()); |
175 | @@ -70,6 +73,8 @@ | |||
176 | 70 | INSTANTIATE_TEST_CASE_P(TestLauncherHideMachine, HideModeNever, | 73 | INSTANTIATE_TEST_CASE_P(TestLauncherHideMachine, HideModeNever, |
177 | 71 | Combine(ValuesIn(QUIRKS), Bool(), Bool())); | 74 | Combine(ValuesIn(QUIRKS), Bool(), Bool())); |
178 | 72 | 75 | ||
179 | 76 | #pragma GCC diagnostic pop | ||
180 | 77 | |||
181 | 73 | // TODO: write tests for HideModeAutohide. | 78 | // TODO: write tests for HideModeAutohide. |
182 | 74 | 79 | ||
183 | 75 | } | 80 | } |
184 | 76 | 81 | ||
185 | === modified file 'tests/test_launcher_hover_machine.cpp' | |||
186 | --- tests/test_launcher_hover_machine.cpp 2013-10-14 16:59:44 +0000 | |||
187 | +++ tests/test_launcher_hover_machine.cpp 2015-03-13 14:15:34 +0000 | |||
188 | @@ -32,6 +32,9 @@ | |||
189 | 32 | unity::LauncherHoverMachine::KEY_NAV_ACTIVE, | 32 | unity::LauncherHoverMachine::KEY_NAV_ACTIVE, |
190 | 33 | unity::LauncherHoverMachine::LAUNCHER_IN_ACTION }; | 33 | unity::LauncherHoverMachine::LAUNCHER_IN_ACTION }; |
191 | 34 | 34 | ||
192 | 35 | #pragma GCC diagnostic push | ||
193 | 36 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
194 | 37 | |||
195 | 35 | struct SingleQuirk : public TestWithParam<std::tuple<unity::LauncherHoverMachine::HoverQuirk, bool, bool>> { | 38 | struct SingleQuirk : public TestWithParam<std::tuple<unity::LauncherHoverMachine::HoverQuirk, bool, bool>> { |
196 | 36 | unity::LauncherHoverMachine machine; | 39 | unity::LauncherHoverMachine machine; |
197 | 37 | }; | 40 | }; |
198 | @@ -113,3 +116,5 @@ | |||
199 | 113 | Combine(ValuesIn(QUIRKS), Bool(), Bool(), ValuesIn(QUIRKS), Bool(), Bool())); | 116 | Combine(ValuesIn(QUIRKS), Bool(), Bool(), ValuesIn(QUIRKS), Bool(), Bool())); |
200 | 114 | 117 | ||
201 | 115 | } | 118 | } |
202 | 119 | |||
203 | 120 | #pragma GCC diagnostic pop | ||
204 | 116 | 121 | ||
205 | === modified file 'tests/test_launcher_icon.cpp' | |||
206 | --- tests/test_launcher_icon.cpp 2014-03-21 04:40:12 +0000 | |||
207 | +++ tests/test_launcher_icon.cpp 2015-03-13 14:15:34 +0000 | |||
208 | @@ -1,5 +1,5 @@ | |||
209 | 1 | /* | 1 | /* |
211 | 2 | * Copyright 2012-2013 Canonical Ltd. | 2 | * Copyright 2012,2013,2015 Canonical Ltd. |
212 | 3 | * | 3 | * |
213 | 4 | * This program is free software: you can redistribute it and/or modify it | 4 | * This program is free software: you can redistribute it and/or modify it |
214 | 5 | * under the terms of the GNU General Public License version 3, as published | 5 | * under the terms of the GNU General Public License version 3, as published |
215 | @@ -96,6 +96,9 @@ | |||
216 | 96 | return quirks; | 96 | return quirks; |
217 | 97 | } | 97 | } |
218 | 98 | 98 | ||
219 | 99 | #pragma GCC diagnostic push | ||
220 | 100 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
221 | 101 | |||
222 | 99 | struct Quirks : TestLauncherIcon, WithParamInterface<AbstractLauncherIcon::Quirk> {}; | 102 | struct Quirks : TestLauncherIcon, WithParamInterface<AbstractLauncherIcon::Quirk> {}; |
223 | 100 | INSTANTIATE_TEST_CASE_P(TestLauncherIcon, Quirks, ValuesIn(GetQuirks())); | 103 | INSTANTIATE_TEST_CASE_P(TestLauncherIcon, Quirks, ValuesIn(GetQuirks())); |
224 | 101 | 104 | ||
225 | @@ -285,6 +288,8 @@ | |||
226 | 285 | } | 288 | } |
227 | 286 | } | 289 | } |
228 | 287 | 290 | ||
229 | 291 | #pragma GCC diagnostic pop | ||
230 | 292 | |||
231 | 288 | TEST_F(TestLauncherIcon, NeedRedrawInvisibleAllMonitors) | 293 | TEST_F(TestLauncherIcon, NeedRedrawInvisibleAllMonitors) |
232 | 289 | { | 294 | { |
233 | 290 | AbstractLauncherIcon::Ptr icon_ptr(new NiceMock<MockLauncherIcon>()); | 295 | AbstractLauncherIcon::Ptr icon_ptr(new NiceMock<MockLauncherIcon>()); |
234 | 291 | 296 | ||
235 | === modified file 'tests/test_panel_menu_view.cpp' | |||
236 | --- tests/test_panel_menu_view.cpp 2015-02-04 10:00:04 +0000 | |||
237 | +++ tests/test_panel_menu_view.cpp 2015-03-13 14:15:34 +0000 | |||
238 | @@ -1,5 +1,5 @@ | |||
239 | 1 | /* | 1 | /* |
241 | 2 | * Copyright 2012 Canonical Ltd. | 2 | * Copyright 2012,2015 Canonical Ltd. |
242 | 3 | * | 3 | * |
243 | 4 | * This program is free software: you can redistribute it and/or modify it | 4 | * This program is free software: you can redistribute it and/or modify it |
244 | 5 | * under the terms of the GNU General Public License version 3, as published | 5 | * under the terms of the GNU General Public License version 3, as published |
245 | @@ -145,6 +145,9 @@ | |||
246 | 145 | EXPECT_FALSE(menu_view.ShouldDrawMenus()); | 145 | EXPECT_FALSE(menu_view.ShouldDrawMenus()); |
247 | 146 | } | 146 | } |
248 | 147 | 147 | ||
249 | 148 | #pragma GCC diagnostic push | ||
250 | 149 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
251 | 150 | |||
252 | 148 | struct ProgressTester : TestPanelMenuView, WithParamInterface<double> {}; | 151 | struct ProgressTester : TestPanelMenuView, WithParamInterface<double> {}; |
253 | 149 | INSTANTIATE_TEST_CASE_P(TestPanelMenuView, ProgressTester, Range(0.0, 1.0, 0.1)); | 152 | INSTANTIATE_TEST_CASE_P(TestPanelMenuView, ProgressTester, Range(0.0, 1.0, 0.1)); |
254 | 150 | 153 | ||
255 | @@ -185,5 +188,7 @@ | |||
256 | 185 | EXPECT_EQ(max_window->geo(), expected_geo); | 188 | EXPECT_EQ(max_window->geo(), expected_geo); |
257 | 186 | } | 189 | } |
258 | 187 | 190 | ||
259 | 191 | #pragma GCC diagnostic pop | ||
260 | 192 | |||
261 | 188 | } // panel namespace | 193 | } // panel namespace |
262 | 189 | } // unity namespace | 194 | } // unity namespace |
263 | 190 | 195 | ||
264 | === modified file 'tests/test_session_button.cpp' | |||
265 | --- tests/test_session_button.cpp 2013-03-19 14:54:43 +0000 | |||
266 | +++ tests/test_session_button.cpp 2015-03-13 14:15:34 +0000 | |||
267 | @@ -1,6 +1,6 @@ | |||
268 | 1 | // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- | 1 | // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- |
269 | 2 | /* | 2 | /* |
271 | 3 | * Copyright (C) 2013 Canonical Ltd | 3 | * Copyright (C) 2013,2015 Canonical Ltd |
272 | 4 | * | 4 | * |
273 | 5 | * This program is free software: you can redistribute it and/or modify | 5 | * This program is free software: you can redistribute it and/or modify |
274 | 6 | * it under the terms of the GNU General Public License version 3 as | 6 | * it under the terms of the GNU General Public License version 3 as |
275 | @@ -151,6 +151,9 @@ | |||
276 | 151 | Button button; | 151 | Button button; |
277 | 152 | }; | 152 | }; |
278 | 153 | 153 | ||
279 | 154 | #pragma GCC diagnostic push | ||
280 | 155 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
281 | 156 | |||
282 | 154 | INSTANTIATE_TEST_CASE_P(TestSessionButtonTypes, ActionButton, | 157 | INSTANTIATE_TEST_CASE_P(TestSessionButtonTypes, ActionButton, |
283 | 155 | testing::Values(Button::Action::LOCK, Button::Action::LOGOUT, Button::Action::SUSPEND, | 158 | testing::Values(Button::Action::LOCK, Button::Action::LOGOUT, Button::Action::SUSPEND, |
284 | 156 | Button::Action::HIBERNATE, Button::Action::SHUTDOWN, Button::Action::REBOOT)); | 159 | Button::Action::HIBERNATE, Button::Action::SHUTDOWN, Button::Action::REBOOT)); |
285 | @@ -165,5 +168,7 @@ | |||
286 | 165 | EXPECT_EQ(button.action(), GetParam()); | 168 | EXPECT_EQ(button.action(), GetParam()); |
287 | 166 | } | 169 | } |
288 | 167 | 170 | ||
289 | 171 | #pragma GCC diagnostic pop | ||
290 | 172 | |||
291 | 168 | } // session | 173 | } // session |
292 | 169 | } // unity | ||
293 | 170 | \ No newline at end of file | 174 | \ No newline at end of file |
294 | 175 | } // unity | ||
295 | 171 | 176 | ||
296 | === modified file 'tests/test_session_controller.cpp' | |||
297 | --- tests/test_session_controller.cpp 2014-05-16 03:05:20 +0000 | |||
298 | +++ tests/test_session_controller.cpp 2015-03-13 14:15:34 +0000 | |||
299 | @@ -1,6 +1,6 @@ | |||
300 | 1 | // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- | 1 | // -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*- |
301 | 2 | /* | 2 | /* |
303 | 3 | * Copyright (C) 2013 Canonical Ltd | 3 | * Copyright (C) 2013,2015 Canonical Ltd |
304 | 4 | * | 4 | * |
305 | 5 | * This program is free software: you can redistribute it and/or modify | 5 | * This program is free software: you can redistribute it and/or modify |
306 | 6 | * it under the terms of the GNU General Public License version 3 as | 6 | * it under the terms of the GNU General Public License version 3 as |
307 | @@ -73,6 +73,9 @@ | |||
308 | 73 | color_property.changed.emit(nux::color::RandomColor()); | 73 | color_property.changed.emit(nux::color::RandomColor()); |
309 | 74 | } | 74 | } |
310 | 75 | 75 | ||
311 | 76 | #pragma GCC diagnostic push | ||
312 | 77 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
313 | 78 | |||
314 | 76 | struct ShowMode : TestSessionController, testing::WithParamInterface<View::Mode> {}; | 79 | struct ShowMode : TestSessionController, testing::WithParamInterface<View::Mode> {}; |
315 | 77 | INSTANTIATE_TEST_CASE_P(TestSessionController, ShowMode, | 80 | INSTANTIATE_TEST_CASE_P(TestSessionController, ShowMode, |
316 | 78 | testing::Values(View::Mode::SHUTDOWN, View::Mode::LOGOUT, View::Mode::FULL)); | 81 | testing::Values(View::Mode::SHUTDOWN, View::Mode::LOGOUT, View::Mode::FULL)); |
317 | @@ -137,6 +140,8 @@ | |||
318 | 137 | EXPECT_EQ(controller.view_->have_inhibitors(), GetParam()); | 140 | EXPECT_EQ(controller.view_->have_inhibitors(), GetParam()); |
319 | 138 | } | 141 | } |
320 | 139 | 142 | ||
321 | 143 | #pragma GCC diagnostic pop | ||
322 | 144 | |||
323 | 140 | TEST_F(TestSessionController, CancelRequested) | 145 | TEST_F(TestSessionController, CancelRequested) |
324 | 141 | { | 146 | { |
325 | 142 | controller.Show(View::Mode::FULL); | 147 | controller.Show(View::Mode::FULL); |
326 | @@ -182,4 +187,4 @@ | |||
327 | 182 | } | 187 | } |
328 | 183 | 188 | ||
329 | 184 | } // session | 189 | } // session |
330 | 185 | } // unity | ||
331 | 186 | \ No newline at end of file | 190 | \ No newline at end of file |
332 | 191 | } // unity | ||
333 | 187 | 192 | ||
334 | === modified file 'tests/test_software_center_launcher_icon.cpp' | |||
335 | --- tests/test_software_center_launcher_icon.cpp 2014-02-18 01:20:01 +0000 | |||
336 | +++ tests/test_software_center_launcher_icon.cpp 2015-03-13 14:15:34 +0000 | |||
337 | @@ -1,5 +1,5 @@ | |||
338 | 1 | /* | 1 | /* |
340 | 2 | * Copyright 2012 Canonical Ltd. | 2 | * Copyright 2012,2015 Canonical Ltd. |
341 | 3 | * | 3 | * |
342 | 4 | * This program is free software: you can redistribute it and/or modify it | 4 | * This program is free software: you can redistribute it and/or modify it |
343 | 5 | * under the terms of the GNU General Public License version 3, as published | 5 | * under the terms of the GNU General Public License version 3, as published |
344 | @@ -243,6 +243,9 @@ | |||
345 | 243 | EXPECT_EQ(PRE_INSTALL_ICON, icon.icon_name()); | 243 | EXPECT_EQ(PRE_INSTALL_ICON, icon.icon_name()); |
346 | 244 | } | 244 | } |
347 | 245 | 245 | ||
348 | 246 | #pragma GCC diagnostic push | ||
349 | 247 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
350 | 248 | |||
351 | 246 | struct MultiMonitor : TestSoftwareCenterLauncherIcon, WithParamInterface<unsigned> {}; | 249 | struct MultiMonitor : TestSoftwareCenterLauncherIcon, WithParamInterface<unsigned> {}; |
352 | 247 | INSTANTIATE_TEST_CASE_P(TestSoftwareCenterLauncherIcon, MultiMonitor, Range<unsigned>(0, monitors::MAX, 1)); | 250 | INSTANTIATE_TEST_CASE_P(TestSoftwareCenterLauncherIcon, MultiMonitor, Range<unsigned>(0, monitors::MAX, 1)); |
353 | 248 | 251 | ||
354 | @@ -292,6 +295,8 @@ | |||
355 | 292 | g_variant_unref(params); | 295 | g_variant_unref(params); |
356 | 293 | } | 296 | } |
357 | 294 | 297 | ||
358 | 298 | #pragma GCC diagnostic pop | ||
359 | 299 | |||
360 | 295 | } | 300 | } |
361 | 296 | 301 | ||
362 | 297 | } | 302 | } |
363 | 298 | 303 | ||
364 | === modified file 'tests/test_switcher_view.cpp' | |||
365 | --- tests/test_switcher_view.cpp 2014-05-08 04:22:31 +0000 | |||
366 | +++ tests/test_switcher_view.cpp 2015-03-13 14:15:34 +0000 | |||
367 | @@ -1,5 +1,5 @@ | |||
368 | 1 | /* | 1 | /* |
370 | 2 | * Copyright 2013 Canonical Ltd. | 2 | * Copyright 2013,2015 Canonical Ltd. |
371 | 3 | * | 3 | * |
372 | 4 | * This program is free software: you can redistribute it and/or modify it | 4 | * This program is free software: you can redistribute it and/or modify it |
373 | 5 | * under the terms of the GNU General Public License version 3, as published | 5 | * under the terms of the GNU General Public License version 3, as published |
374 | @@ -150,6 +150,8 @@ | |||
375 | 150 | EXPECT_DOUBLE_EQ(switcher.GetCurrentProgress(), 1.0f); | 150 | EXPECT_DOUBLE_EQ(switcher.GetCurrentProgress(), 1.0f); |
376 | 151 | } | 151 | } |
377 | 152 | 152 | ||
378 | 153 | #pragma GCC diagnostic push | ||
379 | 154 | #pragma GCC diagnostic ignored "-Wunused-variable" | ||
380 | 153 | 155 | ||
381 | 154 | struct AnimationProgress : TestSwitcherView, testing::WithParamInterface<float> {}; | 156 | struct AnimationProgress : TestSwitcherView, testing::WithParamInterface<float> {}; |
382 | 155 | INSTANTIATE_TEST_CASE_P(TestSwitcherView, AnimationProgress, testing::Range<float>(0.0, 1.0, 0.1)); | 157 | INSTANTIATE_TEST_CASE_P(TestSwitcherView, AnimationProgress, testing::Range<float>(0.0, 1.0, 0.1)); |
383 | @@ -216,5 +218,7 @@ | |||
384 | 216 | } | 218 | } |
385 | 217 | } | 219 | } |
386 | 218 | 220 | ||
387 | 221 | #pragma GCC diagnostic pop | ||
388 | 222 | |||
389 | 219 | } | 223 | } |
390 | 220 | } | 224 | } |
PASSED: Continuous integration, rev:3930 jenkins. qa.ubuntu. com/job/ unity-ci/ 1165/ jenkins. qa.ubuntu. com/job/ unity-vivid- amd64-ci/ 53 jenkins. qa.ubuntu. com/job/ unity-vivid- armhf-ci/ 52 jenkins. qa.ubuntu. com/job/ unity-vivid- i386-ci/ 52
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- ci/1165/ rebuild
http://