File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ if( $^O eq "msys" )
61
61
}
62
62
63
63
# Constants
64
- our $lcov_version = ' LCOV version 1.11 pre (CVS $Revision: 1.118 $)' ;
64
+ our $lcov_version = ' LCOV version 1.11 pre (CVS $Revision: 1.119 $)' ;
65
65
our $lcov_url = " http://ltp.sourceforge.net/coverage/lcov.php" ;
66
66
our $gcov_tool = " gcov" ;
67
67
our $tool_name = basename($0 );
@@ -684,8 +684,11 @@ sub gen_info($)
684
684
685
685
@file_list = ` find "$directory " $maxdepth $follow -name \\ *$ext -type f 2>/dev/null` ;
686
686
chomp (@file_list );
687
- @file_list or
688
- die (" ERROR: no $ext files found in $directory !\n " );
687
+ if (!@file_list ) {
688
+ warn (" WARNING: no $ext files found in $directory - " .
689
+ " skipping!\n " );
690
+ return ;
691
+ }
689
692
$prefix = get_common_prefix(1, @file_list );
690
693
info(" Found %d %s files in %s \n " , $#file_list +1, $type ,
691
694
$directory );
You can’t perform that action at this time.
0 commit comments