Репозитории ALT
Группа :: Разработка/Perl
Пакет: perl-Term-ReadLine-Gnu
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: perl-Term-ReadLine-Gnu-at-disable-Tk-test.patch
Скачать
Скачать
commit 21cb3279b7b9982a2de0c5ac65015c1ed839382b
Author: Alexey Tourbin <at@altlinux.ru>
Date: Fri Oct 13 04:14:18 2006 +0400
disable Tk test by default
perl-Term-ReadLine-Gnu-1.14-alt-disable-tk-test.patch
This test produces extra build dependencies (and also requires X display)
so I disable it by default.
--- a/t/callback.t
+++ b/t/callback.t
@@ -44,7 +44,7 @@
########################################################################
# check Tk is installed and X Window is available
{
- if (eval "use Tk; 1" && $ENV{DISPLAY} && $ENV{DISPLAY} ne '') {
+ if (eval "use Tk; 1" && $ENV{DISPLAY} && $ENV{DISPLAY} ne '' && $ENV{PERL_RL_TEST_TK}) {
ok(1, 'use Tk');
} else {
diag 'skipped since Tk is not available.';
--- a/t/Tk.t 2016-07-29 12:26:58.000000000 +0000
+++ b/t/Tk.t 2016-07-29 12:35:43.342087981 +0000
@@ -2,7 +2,7 @@
use Test::More;
-eval "use Tk; 1" or
+eval "use Tk; 1" and $ENV{PERL_RL_TEST_TK} or
plan skip_all => "Tk is not installed.";
# seeing as the entire point of this test is to test the event handler,