From: Sven Schöling Date: Wed, 26 Oct 2011 13:33:47 +0000 (+0200) Subject: Testoutput bei PPI Parsingfehlern angepasst. X-Git-Tag: release-2.7.0beta1~196 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4000444b681301ef283c2c0ea55f41edb0deeb42;p=kivitendo-erp.git Testoutput bei PPI Parsingfehlern angepasst. --- diff --git a/t/structure/no_lexicals_in_postif.t b/t/structure/no_lexicals_in_postif.t index bb15c9cc9..c7d4c3035 100644 --- a/t/structure/no_lexicals_in_postif.t +++ b/t/structure/no_lexicals_in_postif.t @@ -24,10 +24,10 @@ my $fh; my @testitems = @Support::Files::testitems; foreach my $file (@testitems) { - next unless -f $file; my $clean = 1; my $doc = PPI::Document->new($file) or do { - ok 0, "PPI error for file $file: " . PPI::Document::errstr(); + print $fh "?: PPI error for file $file: " . PPI::Document::errstr() . "\n"; + ok 0, $file; next; }; my $stmts = $doc->find('Statement::Variable');