diff options
author | msmit <msmit@remedy.nl> | 2013-03-14 10:10:14 +0000 |
---|---|---|
committer | msmit <msmit@remedy.nl> | 2013-03-14 10:10:14 +0000 |
commit | be8ca31c947fa2a2c7b13fceb2dd8d1fa5f50993 (patch) | |
tree | ae429dcaf425c21e53d2e4a303602e3c51e189b8 /ACE/bin/fuzz.pl | |
parent | e3b55192252da9c269b15b966c16963ce97ac987 (diff) | |
download | ATCD-be8ca31c947fa2a2c7b13fceb2dd8d1fa5f50993.tar.gz |
Thu Mar 14 10:08:55 UTC 2013 Marcel Smit <msmit@remedy.nl>
* bin/fuzz.pl:
Checking the last part of the given @file entry, instead of
the filename only.
Diffstat (limited to 'ACE/bin/fuzz.pl')
-rwxr-xr-x | ACE/bin/fuzz.pl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ACE/bin/fuzz.pl b/ACE/bin/fuzz.pl index f916e9263c0..17caee09361 100755 --- a/ACE/bin/fuzz.pl +++ b/ACE/bin/fuzz.pl @@ -1511,11 +1511,9 @@ sub check_for_mismatched_filename () while (<FILE>) { if (m/\@file\s*([^\s]+)/){ # $file includes complete path, $1 is the name after - # @file. We must strip the complete path from $file. - # we do that using the basename function from - # File::BaseName - $filename = basename($file,""); - if (!($filename eq $1)){ + # @file. We must check whether the last part of $file + # is equal to $1 + if ($file !~ /$1$/) { print_error ("$file:$.: \@file mismatch in $file, found $1"); } } |