From ca259d46bd3d09cd0583eebbe40bb013dc4d6490 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Wed, 27 Jul 2016 14:01:51 +0200 Subject: [PATCH] meta.t: remove -T from the syntax check When testing it on my system, perl -c claims ban-contributors.pl is good and perl -cT claims ban-contributors.pl bad because it can no longer find Net/Whois/Parser.pm in @INC even though it's right there as /home/alex/perl5/lib/perl5/Net/Whois/Parser.pm -- apparently taint checking changes @INC. . --- t/meta.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/meta.t b/t/meta.t index 95db7b7e..ffdf2a65 100644 --- a/t/meta.t +++ b/t/meta.t @@ -111,10 +111,10 @@ unless (ok(@badModules == 0, 'AddModuleDescription is used in every module')) { } # we have to use shell to redirect the output :( -@badModules = grep { system("perl -cT \Q$_\E > /dev/null 2>&1") != 0 } @modules; +@badModules = grep { system("perl -c \Q$_\E > /dev/null 2>&1") != 0 } @modules; unless (ok(@badModules == 0, 'modules are syntatically correct')) { diag(qq{$_ has syntax errors}) for @badModules; - diag("▶▶▶ Use this command to see the problems: for f in @badModules; do perl -cT \$f; done"); + diag("▶▶▶ Use this command to see the problems: for f in @badModules; do perl -c \$f; done"); } my %changes = (