From: intrigeri <intrigeri@boum.org>
Date: Thu, 31 Oct 2013 18:21:11 +0000
Subject: Use a temporary directory as $HOME.
  Else, t/overrides.t and t/zz-GtkRecentChooserDialog.t fail with:
  (overrides.t:5041): Gtk-CRITICAL **: Unable to create user data directory
  '/sbuild-nonexistent/.local/share' for storing the recently used files list:
  Permission denied
  **
  Gtk:ERROR:/tmp/buildd/gtk+3.0-3.8.4/./gtk/gtkrecentmanager.c:622:gtk_recent_manager_set_filename:
  assertion failed: (priv->filename != NULL)
Forwarded: gtk-perl-list@gnome.org
Last-Update: 2016-09-09
Debian-Bug: https://bugs.debian.org/724103
---
--- a/t/zz-GtkRecentChooserDialog.t
+++ b/t/zz-GtkRecentChooserDialog.t
@@ -11,6 +11,8 @@
 if (on_unthreaded_freebsd ()) {
   plan skip_all => 'need a perl built with "-pthread" on freebsd';
 } else {
+  use File::Temp qw{tempdir};
+  $ENV{HOME} = tempdir(CLEANUP => 1);
   plan tests => 12;
 }
 
