[perl-gtk3: 1/2] Use a temporary, writable directory as $HOME while running tests.
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-gtk3: 1/2] Use a temporary, writable directory as $HOME while running tests.
- Date: Sun, 4 Aug 2019 16:44:27 +0000 (UTC)
commit 4f1853f6758a72f669721643fddef3d5493411b5
Author: intrigeri <intrigeri boum org>
Date: Tue Jul 16 13:33:42 2019 +0000
Use a temporary, writable directory as $HOME while running tests.
Otherwise, t/overrides.t and t/zz-GtkRecentChooserDialog.t fail in a Debian
sbuild build environment, with errors such as:
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)
t/inc/setup.pl | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/t/inc/setup.pl b/t/inc/setup.pl
index a40bdfc..17d19e1 100644
--- a/t/inc/setup.pl
+++ b/t/inc/setup.pl
@@ -21,4 +21,7 @@ sub on_unthreaded_freebsd {
return 0;
}
+use File::Temp qw{tempdir};
+$ENV{HOME} = tempdir(CLEANUP => 1);
+
1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]