diff options
author | David Mitchell <davem@iabyn.com> | 2017-02-24 20:15:48 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-06-05 12:52:18 +0100 |
commit | 94021b253e6a3557d6e506f59c0278dd795899f6 (patch) | |
tree | ae387631144801739341deea5dd2237fdb55fa93 /t/TEST | |
parent | 2ac6acbfdb0279ee04042bba82091927148060a4 (diff) | |
download | perl-94021b253e6a3557d6e506f59c0278dd795899f6.tar.gz |
t/TEST: warn about unknown files deparse-skips.txt
In ./TEST -deparse, when reading Porting/deparse-skips.txt, emit a warning
for each excluded file which no longer exists.
Also, move the scope of $in to just the sub that uses it.
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -962,7 +962,6 @@ sub _cleanup_valgrind { } # Generate regexps of known bad filenames / skips from Porting/deparse-skips.txt -my $in; sub _process_deparse_config { my @deparse_failures; @@ -976,6 +975,7 @@ sub _process_deparse_config { return; } + my $in; while(<$skips>) { if (/__DEPARSE_FAILURES__/) { $in = \@deparse_failures; next; @@ -991,6 +991,7 @@ sub _process_deparse_config { next unless $_; push @$in, $_; + warn "WARNING: $f:$.: excluded file doesn't exist: $_\n" unless -f $_; } for my $f (@deparse_failures, @deparse_skips) { |