Dne Po 25.Květen.2015 10:10:02, ppisar napsal(a):
Show quoted text> It's necessary to update number of t/02_ui.t tests to skip when a
> terminal is not available.
This patch fixes it.
-- Petr
From 136bc1a7ab0672248aa5f87b033ccd9012e8a56a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Mon, 25 May 2015 16:04:39 +0200
Subject: [PATCH] Correct number of tests to skip in t/02_ui.t
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Running tests without terminal causes a failure because adding a new
test for multiple choice forgot to increase the number of tests to
skip when no terminal is available.
CPAN RT#104688
Signed-off-by: Petr PÃsaÅ <ppisar@redhat.com>
---
t/02_ui.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/02_ui.t b/t/02_ui.t
index c2afb35..4e80afc 100644
--- a/t/02_ui.t
+++ b/t/02_ui.t
@@ -14,7 +14,7 @@ $Term::UI::VERBOSE = $Term::UI::VERBOSE = 0;
# SKIP tests if we aren't on a terminal
SKIP: {
-skip 'not on a terminal', 20 unless -t;
+skip 'not on a terminal', 21 unless -t;
### enable warnings
$^W = 1;
--
2.1.0