275
275
# test filter with differing version
276
276
$COVER $LCOV_TOOL $EXTRA_GCOV_OPTS $BASE_OPTS --version-script " $GET_VERSION_EXE --md5 --allow-missing" --output filt2.info --filter branch,line -a baseline2.info $IGNORE
277
277
if [ 0 == $? ] ; then
278
- echo " ERROR: filter with mismatched version did not fail"
278
+ echo " ERROR: filter with mismatched version did not fail 2 "
279
279
status=1
280
280
if [ 0 == $KEEP_GOING ] ; then
281
281
exit 1
@@ -1598,8 +1598,9 @@ if [ 0 == $? ] ; then
1598
1598
fi
1599
1599
1600
1600
# skip both errors
1601
- echo genhtml $DIFFCOV_OPTS --output-directory ./usage --rc memory_percentage --rc -memory_percentage=50 baseline_orig.info --ignore usage
1602
- $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./usage --rc memory_percentage --rc percent=5 baseline_orig.info --ignore usage $IGNORE
1601
+ # ignore version error which might happen if timestamp is included
1602
+ echo genhtml $DIFFCOV_OPTS --output-directory ./usage --rc memory_percentage --rc -memory_percentage=50 baseline_orig.info --ignore usage,version
1603
+ $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./usage --rc memory_percentage --rc percent=5 baseline_orig.info --ignore usage,version $IGNORE
1603
1604
if [ 0 != $? ] ; then
1604
1605
echo " ERROR: didn't ignore errors"
1605
1606
status=1
@@ -1609,8 +1610,8 @@ if [ 0 != $? ] ; then
1609
1610
fi
1610
1611
1611
1612
# skip both errors - but check total message count
1612
- echo genhtml $DIFFCOV_OPTS --output-directory ./expect_err --rc memory_percentage --rc -memory_percentage=50 baseline_orig.info --ignore usage --expect usage:1
1613
- $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./expect_err --rc memory_percentage --rc percent=5 baseline_orig.info --ignore usage $IGNORE --expect usage:1 2>&1 | tee expect_err.log
1613
+ echo genhtml $DIFFCOV_OPTS --output-directory ./expect_err --rc memory_percentage --rc -memory_percentage=50 baseline_orig.info --ignore usage,version --expect usage:1
1614
+ $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./expect_err --rc memory_percentage --rc percent=5 baseline_orig.info --ignore usage,version $IGNORE --expect usage:1 2>&1 | tee expect_err.log
1614
1615
if [ 0 == ${PIPESTATUS[0]} ] ; then
1615
1616
echo " ERROR: didn't catch expect count error"
1616
1617
status=1
1621
1622
grep -E " ERROR:.*count.*'usage' constraint .+ is not true" expect_err.log
1622
1623
1623
1624
# now skip the count message too
1624
- echo genhtml $DIFFCOV_OPTS --output-directory ./expect --rc memory_percentage --rc -memory_percentage=50 baseline_orig.info --ignore usage,count --rc expect_message_count=usage:1 --msg-log
1625
- $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./expect --rc memory_percentage --rc percent=5 baseline_orig.info --ignore usage,count $IGNORE --rc expect_message_count=usage:1 --msg-log 2>&1 | tee expect.log
1625
+ echo genhtml $DIFFCOV_OPTS --output-directory ./expect --rc memory_percentage --rc -memory_percentage=50 baseline_orig.info --ignore usage,version, count --rc expect_message_count=usage:1 --msg-log
1626
+ $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./expect --rc memory_percentage --rc percent=5 baseline_orig.info --ignore usage,version, count $IGNORE --rc expect_message_count=usage:1 --msg-log 2>&1 | tee expect.log
1626
1627
if [ 0 != ${PIPESTATUS[0]} ] ; then
1627
1628
echo " ERROR: didn't skip expect count error"
1628
1629
status=1
0 commit comments