From 5310b7f1255d605cdc6f9580a457c4dc300d2a46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 14 Mar 2011 17:47:49 +0100 Subject: [PATCH] =?utf8?q?Test=20mit=20PPI=20nur=20durchf=C3=BChren,=20wen?= =?utf8?q?n=20PPI=20installiert=20ist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- t/structure/no_lexicals_in_postif.t | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/t/structure/no_lexicals_in_postif.t b/t/structure/no_lexicals_in_postif.t index 960b9ab60..8532ab192 100644 --- a/t/structure/no_lexicals_in_postif.t +++ b/t/structure/no_lexicals_in_postif.t @@ -1,11 +1,13 @@ use strict; - use lib 't'; - use Support::Files; +use Test::More; -use Test::More tests => scalar(@Support::Files::testitems); -use PPI; +if (eval { require PPI; 1 }) { + plan tests => scalar(@Support::Files::testitems); +} else { + plan skip_all => "PPI not installed"; +} my $fh; { -- 2.20.1