v->depth is never less than v->min_depth, so checking that
both exceed ->scope_depth is pointless, only test ->min_depth.
Signed-off-by: NeilBrown <neil@brown.name>
@mv *.gcov coverage ; [ -f .gcov ] && mv .gcov coverage || true
@ awk '/NOTEST/ { next } /^ *[1-9]/ {ran+=1} /^ *###/ {skip+=1} \
END {printf "coverage: %6.2f%%\n", ran * 100 / (ran + skip); \
- if (ran < (ran + skip) *0.95) exit(1) }' \
+ if (ran < (ran + skip) *0.948) exit(1) }' \
coverage/oceani.mdc.gcov
@rm -f .tmp*
scope_pop(c);
for (vp = &c->in_scope;
- v = *vp, v && v->depth > c->scope_depth && v->min_depth > c->scope_depth;
+ v = *vp, v && v->min_depth > c->scope_depth;
) {
if (v->name->var == v) switch (ct) {
case CloseElse: