@@ -812,7 +812,7 @@ sub new
812
812
sub worklist
813
813
{
814
814
my $self = shift ;
815
- # we saved the mssages for the end...
815
+ # we saved the messages for the end...
816
816
foreach my $msg (values %{$self -> [2]}) {
817
817
lcovutil::ignorable_error($msg -> [0], $msg -> [1]);
818
818
}
@@ -1323,12 +1323,16 @@ sub gen_info(@)
1323
1323
my @worklist ;
1324
1324
my $serialChunk = [1, []];
1325
1325
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
+ }
1332
1336
}
1333
1337
push (@{$chunk -> [1]}, $j );
1334
1338
if (scalar (@{$chunk -> [1]}) == $chunkSize ) {
0 commit comments