@@ -812,7 +812,7 @@ sub new
812812sub worklist
813813{
814814 my $self = shift ;
815- # we saved the mssages for the end...
815+ # we saved the messages for the end...
816816 foreach my $msg (values %{$self -> [2]}) {
817817 lcovutil::ignorable_error($msg -> [0], $msg -> [1]);
818818 }
@@ -1323,12 +1323,16 @@ sub gen_info(@)
13231323 my @worklist ;
13241324 my $serialChunk = [1, []];
13251325 my $chunk = [0, []]; # [isSerial, [fileList]]
1326- foreach my $j (@$filelist ) {
1327- my $filename = $j -> [0] . $lcovutil::dirseparator . $j -> [1];
1328- if (grep ({ $filename =~ $_ } @main::large_files )) {
1329- lcovutil::info(1, " large file: $filename \n " );
1330- push (@{$serialChunk -> [1]}, $j );
1331- next ;
1326+ FILE: foreach my $j (@$filelist ) {
1327+ my ($dir , $gcda , $gcno ) = @$j ;
1328+ foreach my $f ($gcda , $gcno ) {
1329+ next unless defined ($f ); # might not be a GCDA file
1330+ my $filename = $dir . $lcovutil::dirseparator . $f ;
1331+ if (grep ({ $filename =~ $_ } @main::large_files )) {
1332+ lcovutil::info(1, " large file: $filename \n " );
1333+ push (@{$serialChunk -> [1]}, $j );
1334+ next FILE;
1335+ }
13321336 }
13331337 push (@{$chunk -> [1]}, $j );
13341338 if (scalar (@{$chunk -> [1]}) == $chunkSize ) {
0 commit comments