dev-perl/Gtk2-AppIndicator: Fix tests with virtualx
authorKent Fredric <kentnl@gentoo.org>
Sat, 29 Apr 2017 09:18:30 +0000 (21:18 +1200)
committerKent Fredric <kentnl@gentoo.org>
Sat, 29 Apr 2017 09:19:39 +0000 (21:19 +1200)
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

index 1fc3f86bc05e2c7dbdb2f2d8be34b19a16618417..3bef901177a6d7ad19f36c12f92cdb51bb26e1a7 100644 (file)
@@ -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"