summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/epiphany/files/epiphany-3.14.0-unittest-1.patch')
-rw-r--r--www-client/epiphany/files/epiphany-3.14.0-unittest-1.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/www-client/epiphany/files/epiphany-3.14.0-unittest-1.patch b/www-client/epiphany/files/epiphany-3.14.0-unittest-1.patch
new file mode 100644
index 000000000000..3b948a5ae686
--- /dev/null
+++ b/www-client/epiphany/files/epiphany-3.14.0-unittest-1.patch
@@ -0,0 +1,30 @@
+From ddf0dea8e4eb5fe263ddc85d661ce58e55dd554f Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Sun, 19 Oct 2014 23:03:02 +0200
+Subject: [PATCH 2/3] Gentoo tests run in ${PORTAGE_TMPDIR} which is not
+ guaranteed to be /tmp
+
+---
+ tests/ephy-file-helpers-test.c | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/tests/ephy-file-helpers-test.c b/tests/ephy-file-helpers-test.c
+index c33c1da..bdf7455 100644
+--- a/tests/ephy-file-helpers-test.c
++++ b/tests/ephy-file-helpers-test.c
+@@ -92,12 +92,7 @@ test_ephy_file_helpers_init (void)
+ GFile *file;
+
+ file = g_file_new_for_path (tmp_dir);
+- /* As a safety measure, only try recursive delete on paths
+- * prefixed with /tmp. */
+- if (g_str_has_prefix (tmp_dir, "/tmp"))
+ g_assert (ephy_file_delete_dir_recursively (file, NULL));
+- else
+- g_warning ("INIT: dangerous path returned as tmp_dir: %s", tmp_dir);
+
+ g_object_unref (file);
+ }
+--
+2.1.2
+