Ubuntu Pastebin

Paste from djledkov at Tue, 10 Feb 2015 14:06:56 +0000

Download as text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
From 5703e09da27158c4c3405b28215da5f4c1c7f1c8 Mon Sep 17 00:00:00 2001
From: Dimitri John Ledkov <dimitri.j.ledkov@intel.com>
Date: Wed, 21 Jan 2015 12:40:32 +0000
Subject: [PATCH] Skip xdg/desktopy tests.
Organization: Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ

---
 gio/tests/appinfo.c             |  3 +++
 gio/tests/contenttype.c         | 24 ++++++++++++++++++++++++
 gio/tests/desktop-app-info.c    | 15 +++++++++++++++
 gio/tests/gdbus-serialization.c |  4 ++++
 4 files changed, 46 insertions(+)

diff --git a/gio/tests/appinfo.c b/gio/tests/appinfo.c
index b1a60f0..5ea455d 100644
--- a/gio/tests/appinfo.c
+++ b/gio/tests/appinfo.c
@@ -305,6 +305,9 @@ test_associations (void)
   GList *list;
   gchar *cmdline;
 
+  g_test_skip ("no update-desktop-database");
+  return;
+
   cmdline = g_strconcat (g_test_get_dir (G_TEST_BUILT), "/appinfo-test --option", NULL);
   appinfo = g_app_info_create_from_commandline (cmdline,
                                                 "cmdline-app-test",
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index 52487ca..6f5e4e7 100644
--- a/gio/tests/contenttype.c
+++ b/gio/tests/contenttype.c
@@ -32,6 +32,9 @@ test_guess (void)
   g_free (res);
   g_free (expected);
 
+  g_test_skip ("no xdg-mime content type");
+  return;
+
   res = g_content_type_guess ("foo.txt", NULL, 0, &uncertain);
   expected = g_content_type_from_mime_type ("text/plain");
   g_assert_content_type_equals (expected, res);
@@ -126,6 +129,9 @@ test_subtype (void)
   gchar *plain;
   gchar *xml;
 
+  g_test_skip ("no xdg-mime content type");
+  return;
+
   plain = g_content_type_from_mime_type ("text/plain");
   xml = g_content_type_from_mime_type ("application/xml");
 
@@ -150,6 +156,9 @@ test_list (void)
   gchar *plain;
   gchar *xml;
 
+  g_test_skip ("no xdg-mime content type");
+  return;
+
   plain = g_content_type_from_mime_type ("text/plain");
   xml = g_content_type_from_mime_type ("application/xml");
 
@@ -172,6 +181,9 @@ test_executable (void)
 {
   gchar *type;
 
+  g_test_skip ("no xdg-mime content type");
+  return;
+
   type = g_content_type_from_mime_type ("application/x-executable");
   g_assert (g_content_type_can_be_executable (type));
   g_free (type);
@@ -191,6 +203,9 @@ test_description (void)
   gchar *type;
   gchar *desc;
 
+  g_test_skip ("no xdg-mime content type");
+  return;
+
   type = g_content_type_from_mime_type ("text/plain");
   desc = g_content_type_get_description (type);
   g_assert (desc != NULL);
@@ -205,6 +220,9 @@ test_icon (void)
   gchar *type;
   GIcon *icon;
 
+  g_test_skip ("no xdg-mime content type");
+  return;
+
   type = g_content_type_from_mime_type ("text/plain");
   icon = g_content_type_get_icon (type);
   g_assert (G_IS_ICON (icon));
@@ -240,6 +258,9 @@ test_symbolic_icon (void)
   gchar *type;
   GIcon *icon;
 
+  g_test_skip ("no xdg-mime content type");
+  return;
+
   type = g_content_type_from_mime_type ("text/plain");
   icon = g_content_type_get_symbolic_icon (type);
   g_assert (G_IS_ICON (icon));
@@ -286,6 +307,9 @@ test_tree (void)
   gchar **types;
   gint i;
 
+  g_test_skip ("no xdg-mime content type");
+  return;
+
   for (i = 0; i < G_N_ELEMENTS (tests); i++)
     {
       path = g_test_get_filename (G_TEST_DIST, tests[i], NULL);
diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c
index ccd6357..00002f1 100644
--- a/gio/tests/desktop-app-info.c
+++ b/gio/tests/desktop-app-info.c
@@ -58,6 +58,9 @@ test_delete (void)
   char *filename;
   gboolean res;
 
+  g_test_skip ("no desktopy things");
+  return;
+
   info = create_app_info ("Blah");
  
   id = g_app_info_get_id (info);
@@ -99,6 +102,9 @@ test_default (void)
   GList *list;
   GError *error = NULL;  
 
+  g_test_skip ("no desktopy things");
+  return;
+
   info1 = create_app_info ("Blah1");
   info2 = create_app_info ("Blah2");
   info3 = create_app_info ("Blah3");
@@ -153,6 +159,9 @@ test_fallback (void)
   GError *error = NULL;
   gint old_length;
 
+  g_test_skip ("no desktopy things");
+  return;
+
   info1 = create_app_info ("Test1");
   info2 = create_app_info ("Test2");
 
@@ -225,6 +234,9 @@ test_last_used (void)
   GAppInfo *info1, *info2, *default_app;
   GError *error = NULL;
 
+  g_test_skip ("no desktopy things");
+  return;
+
   info1 = create_app_info ("Test1");
   info2 = create_app_info ("Test2");
 
@@ -336,6 +348,9 @@ test_extra_getters (void)
   gchar *s;
   gboolean b;
 
+  g_test_skip ("no desktopy things");
+  return;
+
   appinfo = g_desktop_app_info_new_from_filename (g_test_get_filename (G_TEST_DIST, "appinfo-test.desktop", NULL));
   g_assert (appinfo != NULL);
 
diff --git a/gio/tests/gdbus-serialization.c b/gio/tests/gdbus-serialization.c
index e31dbe4..cc5798d 100644
--- a/gio/tests/gdbus-serialization.c
+++ b/gio/tests/gdbus-serialization.c
@@ -1058,6 +1058,10 @@ test_double_array (void)
   g_test_bug ("732754");
 
   conn = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
+  if (conn == NULL) {
+    g_test_skip ("failed to get a session bus");
+    return;
+  }
   g_assert_no_error (error);
 
   g_variant_builder_init (&builder, G_VARIANT_TYPE ("ad"));
-- 
2.1.0
Download as text