File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -151,20 +151,26 @@ if [ 0 != ${PIPESTATUS[0]} ] ; then
151
151
fi
152
152
fi
153
153
154
- COUNT2=` grep -c " ^DA:" filtered.info`
155
- if [ " $COUNT " -le $COUNT2 ] ; then
156
- echo " ERROR: expected to filter out 3 initializer-list lines"
157
- if [ $KEEP_GOING == 0 ] ; then
158
- exit 1
159
- fi
160
- fi
154
+ # did the non-filtered capture command find linecov entried on line 8, 9, or 10?
155
+ grep -E ' ^DA:\(8|9|10\)' initializer.info
156
+ if [ $? == 0 ] ; then
157
+ COUNT2=` grep -c " ^DA:" filtered.info`
158
+ if [ " $COUNT " -le $COUNT2 ] ; then
159
+ echo " ERROR: expected to filter out 3 initializer-list lines"
160
+ if [ $KEEP_GOING == 0 ] ; then
161
+ exit 1
162
+ fi
163
+ fi
161
164
162
- DIFF=` expr $COUNT - $COUNT2 `
163
- if [ " $DIFF " != 3 ] ; then
164
- echo " ERROR: expected to filter out 3 initializer-list lines"
165
- if [ $KEEP_GOING == 0 ] ; then
166
- exit 1
167
- fi
165
+ DIFF=` expr $COUNT - $COUNT2 `
166
+ if [ " $DIFF " != 3 ] ; then
167
+ echo " ERROR: expected to filter out 3 initializer-list lines"
168
+ if [ $KEEP_GOING == 0 ] ; then
169
+ exit 1
170
+ fi
171
+ fi
172
+ else
173
+ echo " no linecov points on std::initializer lines"
168
174
fi
169
175
170
176
echo " Tests passed"
You can’t perform that action at this time.
0 commit comments