File tree Expand file tree Collapse file tree 6 files changed +26
-9
lines changed Expand file tree Collapse file tree 6 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -1123,7 +1123,7 @@ sub _process_one_chunk($$$$)
1123
1123
" geninfo_XXXXX" ,
1124
1124
DIR => $tempFileDir ,
1125
1125
CLEANUP => !defined ($lcovutil::preserve_intermediates )
1126
- ) if ($intermediate || ! defined ($gcda_file ));
1126
+ ) if ($intermediate || defined ($gcda_file ));
1127
1127
1128
1128
# keep track of order - so we can estimate which files were processed
1129
1129
# at same time
Original file line number Diff line number Diff line change @@ -6298,9 +6298,20 @@ sub applyFilters
6298
6298
$func -> name() . " \n " );
6299
6299
$func -> set_end_line($currentLine );
6300
6300
}
6301
- die (' failed to set end line for ' .
6302
- $func -> name() . ' in file ' . $func -> filename())
6303
- unless defined ($func -> end_line());
6301
+ # we may not have set the end line above due to inconsistency
6302
+ # but we also might not have line data
6303
+ # - see .../tests/lcov/extract with gcc/4.8
6304
+ if (!defined ($func -> end_line())) {
6305
+ lcovutil::ignorable_error(
6306
+ $lcovutil::ERROR_INCONSISTENT_DATA ,
6307
+ ' "' . $func -> filename() . ' ":' . $func -> line() .
6308
+ ' : failed to set end line for function ' .
6309
+ $func -> name() .
6310
+ " . See lcovrc man entry for 'derive_function_end_line'."
6311
+ );
6312
+ next FUNC;
6313
+ }
6314
+
6304
6315
# now look for this function in each testcase -
6305
6316
# set the same endline (if not already set)
6306
6317
my $key = $func -> file() . ' :' . $first ;
Original file line number Diff line number Diff line change 899
899
900
900
901
901
# check select script
902
- echo ${LCOV_HOME} /bin/genhtml $DIFFCOV_OPTS --baseline-file ./baseline.info.gz --diff-file diff.txt --annotate-script ` pwd` /annotate.sh --show-owners all --ignore-errors source --select " $SELECT " --select --owner --select stanley.ukeridge current.info -o select
903
- $COVER ${GENHTML_TOOL} $DIFFCOV_OPTS --baseline-file ./baseline.info.gz --diff-file diff.txt --annotate-script ` pwd` /annotate.sh --show-owners all --ignore-errors source --select " $SELECT " --select --owner --select stanley.ukeridge current.info -o select
902
+ echo ${LCOV_HOME} /bin/genhtml $DIFFCOV_OPTS --baseline-file ./baseline.info.gz --diff-file diff.txt --annotate-script ` pwd` /annotate.sh --show-owners all --ignore-errors source --select " $SELECT " --select --owner --select stanley.ukeridge current.info -o select $IGNORE
903
+ $COVER ${GENHTML_TOOL} $DIFFCOV_OPTS --baseline-file ./baseline.info.gz --diff-file diff.txt --annotate-script ` pwd` /annotate.sh --show-owners all --ignore-errors source --select " $SELECT " --select --owner --select stanley.ukeridge current.info -o select $IGNORE
904
904
if [ 0 != $? ] ; then
905
905
echo " ERROR: genhtml select did not pass"
906
906
status=1
937
937
938
938
939
939
# check select script
940
- echo ${LCOV_HOME} /bin/genhtml $DIFFCOV_OPTS --baseline-file ./baseline.info.gz --diff-file diff.txt --annotate-script ` pwd` /annotate.sh --show-owners all --ignore-errors source --select " $SELECT " --select --owner --select not.there current.info -o select2
941
- $COVER ${GENHTML_TOOL} $DIFFCOV_OPTS --baseline-file ./baseline.info.gz --diff-file diff.txt --annotate-script ` pwd` /annotate.sh --show-owners all --ignore-errors source --select " $SELECT " --select --owner --select not.there current.info -o select2
940
+ echo ${LCOV_HOME} /bin/genhtml $DIFFCOV_OPTS --baseline-file ./baseline.info.gz --diff-file diff.txt --annotate-script ` pwd` /annotate.sh --show-owners all --ignore-errors source --select " $SELECT " --select --owner --select not.there current.info -o select2 $IGNORE
941
+ $COVER ${GENHTML_TOOL} $DIFFCOV_OPTS --baseline-file ./baseline.info.gz --diff-file diff.txt --annotate-script ` pwd` /annotate.sh --show-owners all --ignore-errors source --select " $SELECT " --select --owner --select not.there current.info -o select2 $IGNORE
942
942
if [ 0 != $? ] ; then
943
943
echo " ERROR: genhtml select did not pass"
944
944
status=1
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ if [ 0 != ${PIPESTATUS[0]} ] ; then
217
217
fi
218
218
COUNT1=` grep -c -i " warning: .*range.* unknown line .* there are only" range.log`
219
219
if [ 1 != $COUNT1 ] ; then
220
- echo " Missing expected warning"
220
+ echo " Missing expected warning: expected 1 found $COUNT1 "
221
221
if [ 0 == $KEEP_GOING ] ; then
222
222
exit 1
223
223
fi
Original file line number Diff line number Diff line change @@ -96,6 +96,10 @@ if [ "${VER[0]}" -lt 5 ] ; then
96
96
IGNORE=" --ignore inconsistent"
97
97
# and filter exception branches to avoid spurious differences for old compiler
98
98
FILTER=' --filter branch'
99
+
100
+ # gcc older than 5 doesn't support lambda
101
+ echo " Compiler version it too old - skipping lambda test"
102
+ exit 0
99
103
fi
100
104
101
105
rm -rf * .txt* * .json dumper* report lambda * .gcda * .gcno * .info
Original file line number Diff line number Diff line change 5
5
6
6
set -ex
7
7
8
+ rm -f test * .gcno * .gcda
9
+
8
10
echo " Build test program"
9
11
" $CC " test.c -o test --coverage
10
12
You can’t perform that action at this time.
0 commit comments