Merge lp:~smspillaz/compiz/compiz.fix-tests into lp:compiz/0.9.12

Proposed by Sam Spilsbury
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 4000
Merged at revision: 4000
Proposed branch: lp:~smspillaz/compiz/compiz.fix-tests
Merge into: lp:compiz/0.9.12
Diff against target: 79 lines (+9/-9)
3 files modified
compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend.c (+3/-6)
plugins/resize/src/logic/src/resize-logic.cpp (+3/-3)
plugins/resize/src/logic/tests/test-logic.cpp (+3/-0)
To merge this branch: bzr merge lp:~smspillaz/compiz/compiz.fix-tests
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+287939@code.launchpad.net

Commit message

Fix broken tests

Description of the change

Can someone look into why we're not getting automated CI runs anymore?

Apparently the tests have been broken for months now and nobody noticed. That's really bad.

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
Marco Trevisan (Treviño) (3v1n0) wrote :

Oh, CI runs here, but maybe not for every test case...

That's weird, anyway thanks a lot for catching it and for your fix!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend.c'
2--- compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend.c 2014-04-07 22:37:35 +0000
3+++ compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend.c 2016-03-03 14:26:17 +0000
4@@ -183,8 +183,6 @@
5 const char *ccsProfile = ccsGetProfile (context);
6 char *profile = NULL;
7
8- CCSGSettingsBackendPrivate *priv = (CCSGSettingsBackendPrivate *) ccsObjectGetPrivate (backend);
9-
10 if (!ccsProfile)
11 profile = strdup (DEFAULTPROF);
12 else
13@@ -197,11 +195,7 @@
14 }
15
16 if (g_strcmp0 (profile, currentProfile))
17- {
18 ccsGSettingsBackendUpdateCurrentProfileName (backend, profile);
19- g_list_free_full (priv->settingsList, ccsGSettingsWrapperDestroyNotify);
20- priv->settingsList = NULL;
21- }
22
23 free (profile);
24
25@@ -294,6 +288,9 @@
26 if (priv->currentProfileSettings)
27 ccsGSettingsWrapperUnref (priv->currentProfileSettings);
28
29+ g_list_free_full (priv->settingsList, ccsGSettingsWrapperDestroyNotify);
30+ priv->settingsList = NULL;
31+
32 priv->currentProfile = strdup (value);
33 priv->currentProfileSettings = ccsGSettingsWrapperNewForSchemaWithPath (PROFILE_SCHEMA_ID,
34 profilePath,
35
36=== modified file 'plugins/resize/src/logic/src/resize-logic.cpp'
37--- plugins/resize/src/logic/src/resize-logic.cpp 2015-10-20 15:01:58 +0000
38+++ plugins/resize/src/logic/src/resize-logic.cpp 2016-03-03 14:26:17 +0000
39@@ -439,7 +439,7 @@
40 lastMaskY = mask;
41 }
42
43- mScreen->updateGrab (grabIndex, screen->cursorCache (keyCursorNames[i]));
44+ mScreen->updateGrab (grabIndex, mScreen->cursorCache (keyCursorNames[i]));
45 }
46 break;
47 }
48@@ -692,7 +692,7 @@
49 cursor_name = DOWN_CURSOR;
50 }
51
52- return screen->cursorCache (cursor_name);
53+ return mScreen->cursorCache (cursor_name);
54 }
55
56 void
57@@ -1338,7 +1338,7 @@
58 Cursor cursor;
59
60 if (state & CompAction::StateInitKey)
61- cursor = screen->cursorCache (MIDDLE_CURSOR);
62+ cursor = mScreen->cursorCache (MIDDLE_CURSOR);
63 else
64 cursor = cursorFromResizeMask (mask);
65
66
67=== modified file 'plugins/resize/src/logic/tests/test-logic.cpp'
68--- plugins/resize/src/logic/tests/test-logic.cpp 2014-03-12 19:05:44 +0000
69+++ plugins/resize/src/logic/tests/test-logic.cpp 2016-03-03 14:26:17 +0000
70@@ -172,6 +172,9 @@
71
72 EXPECT_CALL (mockScreen, glPaintOutputSetEnabled (_))
73 .Times(AnyNumber());
74+
75+ EXPECT_CALL (mockScreen, cursorCache(_))
76+ .WillRepeatedly (Return (0));
77 }
78
79 void SetUpFakePropertyWriter ()

Subscribers

People subscribed via source and target branches