gnu: Add r-xnomial.
[jackhill/guix/guix.git] / gnu / packages / patches / glib-tests-homedir.patch
CommitLineData
e969b140
MW
1`g_get_home_dir' looks at /etc/passwd first, which fails in chroot builds.
2The gdbus tests use it to lookup .dbus-keyrings, so they cannot run in our
3chroot build environment. Thus, disable them.
4
5--- glib-2.34.3/gio/tests/gdbus-connection-flush.c 2013-01-16 17:29:46.000000000 +0100
6+++ glib-2.34.3/gio/tests/gdbus-connection-flush.c 2013-01-16 17:29:47.000000000 +0100
7@@ -373,10 +373,6 @@ main (int argc,
8 g_type_init ();
9 g_test_init (&argc, &argv, NULL);
10
11- g_test_add ("/gdbus/connection/flush/busy", Fixture, NULL,
12- setup, test_flush_busy, teardown);
13- g_test_add ("/gdbus/connection/flush/idle", Fixture, NULL,
14- setup, test_flush_idle, teardown);
15
16 ret = g_test_run();
17
18--- glib-2.38.0.orig/gio/tests/gdbus-peer.c 2013-08-08 12:00:40.000000000 +0200
19+++ glib-2.38.0/gio/tests/gdbus-peer.c 2013-09-30 19:36:40.000000000 +0200
20@@ -1746,11 +1746,6 @@
21
22 g_test_add_func ("/gdbus/peer-to-peer", test_peer);
23 g_test_add_func ("/gdbus/delayed-message-processing", delayed_message_processing);
24- g_test_add_func ("/gdbus/nonce-tcp", test_nonce_tcp);
25-
26- g_test_add_func ("/gdbus/tcp-anonymous", test_tcp_anonymous);
27- g_test_add_func ("/gdbus/credentials", test_credentials);
28- g_test_add_func ("/gdbus/codegen-peer-to-peer", codegen_test_peer);
29
30 ret = g_test_run();
31
32--- glib-2.37.1/gio/tests/gdbus-exit-on-close.c 2013-06-07 23:41:34.000000000 +0200
33+++ glib-2.37.1/gio/tests/gdbus-exit-on-close.c 2013-06-07 23:41:40.000000000 +0200
34@@ -211,6 +211,7 @@ main (int argc,
35
36 g_test_init (&argc, &argv, NULL);
37
38+ return g_test_run();
39 for (i = 0; cases[i].name != NULL; i++)
40 {
41 gchar *name;
42@@ -224,5 +225,4 @@ main (int argc,
43 g_free (name);
44 }
45
46- return g_test_run();
47 }
48
49--- glib-2.34.3/gio/tests/gdbus-non-socket.c 2013-01-16 18:13:25.000000000 +0100
50+++ glib-2.34.3/gio/tests/gdbus-non-socket.c 2013-01-16 18:13:27.000000000 +0100
51@@ -294,7 +294,6 @@ main (int argc,
52 g_type_init ();
53 g_test_init (&argc, &argv, NULL);
54
55- g_test_add_func ("/gdbus/non-socket", test_non_socket);
56
57 ret = g_test_run();
58
59