275275# test filter with differing version
276276$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
277277if [ 0 == $? ] ; then
278- echo " ERROR: filter with mismatched version did not fail"
278+ echo " ERROR: filter with mismatched version did not fail 2 "
279279 status=1
280280 if [ 0 == $KEEP_GOING ] ; then
281281 exit 1
@@ -1598,8 +1598,9 @@ if [ 0 == $? ] ; then
15981598fi
15991599
16001600# 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
16031604if [ 0 != $? ] ; then
16041605 echo " ERROR: didn't ignore errors"
16051606 status=1
@@ -1609,8 +1610,8 @@ if [ 0 != $? ] ; then
16091610fi
16101611
16111612# 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
16141615if [ 0 == ${PIPESTATUS[0]} ] ; then
16151616 echo " ERROR: didn't catch expect count error"
16161617 status=1
16211622grep -E " ERROR:.*count.*'usage' constraint .+ is not true" expect_err.log
16221623
16231624# 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
16261627if [ 0 != ${PIPESTATUS[0]} ] ; then
16271628 echo " ERROR: didn't skip expect count error"
16281629 status=1
0 commit comments