From: Sven Schöling Date: Mon, 14 Mar 2011 16:47:49 +0000 (+0100) Subject: Test mit PPI nur durchführen, wenn PPI installiert ist. X-Git-Tag: release-2.7.0beta1~198 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5310b7f1255d605cdc6f9580a457c4dc300d2a46;p=kivitendo-erp.git Test mit PPI nur durchführen, wenn PPI installiert ist. --- 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; {