commit:     aa2b57baed4f05b8b3e6a3c4344814ccbf036522
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 29 09:18:30 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Sat Apr 29 09:19:39 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa2b57ba

dev-perl/Gtk2-AppIndicator: Fix tests with virtualx

Tests currently fail trying to access a non-existent display.

This fixes the problem by constructing a virtual X instance for testing

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-perl/Gtk2-AppIndicator/Gtk2-AppIndicator-0.150.0.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-perl/Gtk2-AppIndicator/Gtk2-AppIndicator-0.150.0.ebuild 
b/dev-perl/Gtk2-AppIndicator/Gtk2-AppIndicator-0.150.0.ebuild
index 1fc3f86bc05..3bef901177a 100644
--- a/dev-perl/Gtk2-AppIndicator/Gtk2-AppIndicator-0.150.0.ebuild
+++ b/dev-perl/Gtk2-AppIndicator/Gtk2-AppIndicator-0.150.0.ebuild
@@ -5,7 +5,7 @@ EAPI=5
 
 MODULE_AUTHOR=OESTERHOL
 MODULE_VERSION=0.15
-inherit perl-module
+inherit virtualx perl-module
 
 DESCRIPTION="Perl binding for the GTK2 AppIndicator"
 
@@ -19,5 +19,7 @@ RDEPEND="
 DEPEND="${RDEPEND}
        virtual/perl-ExtUtils-MakeMaker
 "
-
+src_test() {
+       virtx perl-module_src_test
+}
 SRC_TEST="do parallel"

Reply via email to