Make plugin syntax checks run with -T
This commit is contained in:
parent
dbaa9dbd6c
commit
46701716b2
@ -34,7 +34,7 @@ sub test_syntax {
|
|||||||
return if ! -f $f;
|
return if ! -f $f;
|
||||||
return if $skip_syntax{$f};
|
return if $skip_syntax{$f};
|
||||||
return if $f =~ /async/; # requires ParaDNS
|
return if $f =~ /async/; # requires ParaDNS
|
||||||
my $r = `$this_perl -c $f 2>&1`;
|
my $r = `$this_perl -Tc $f 2>&1`;
|
||||||
my $exit_code = sprintf ("%d", $CHILD_ERROR >> 8);
|
my $exit_code = sprintf ("%d", $CHILD_ERROR >> 8);
|
||||||
ok( $exit_code == 0, "syntax $f");
|
ok( $exit_code == 0, "syntax $f");
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user