clear errcnt. Instead, pass 0 as argument 2 to perror.
* runtest.exp (runtest): Likewise.
+2016-03-20 Ben Elliston <bje@gnu.org>
+
+ * lib/dg.exp (dg-test): There is no need to call unresolved to
+ clear errcnt. Instead, pass 0 as argument 2 to perror.
+ * runtest.exp (runtest): Likewise.
+
2016-03-16 Ben Elliston <bje@gnu.org>
Revert this change (the GCC testsuite uses diff):
} else {
perror "$name: $errmsg for \"$op\"\n"
}
- # ??? The call to unresolved here is necessary to clear `errcnt'.
- # What we really need is a proc like perror that doesn't set errcnt.
- unresolved "$name: $errmsg for \"$op\""
+ perror "$name: $errmsg for \"$op\"" 0
return
}
}
verbose "Running dg-final tests." 3
verbose "dg-final-proc:\n[info body dg-final-proc]" 4
if {[catch "dg-final-proc $prog" errmsg]} {
- perror "$name: error executing dg-final: $errmsg"
- # ??? The call to unresolved here is necessary to clear `errcnt'.
- # What we really need is a proc like perror that doesn't set errcnt.
- unresolved "$name: error executing dg-final: $errmsg"
+ perror "$name: error executing dg-final: $errmsg" 0
}
}
} else {
# This should never happen, but maybe if the file got removed
# between the `find' above and here.
- perror "$test_file_name does not exist."
- # ??? This is a hack. We want to send a message to stderr and
- # to the summary file (just like perror does), but we don't
- # want the next testcase to get a spurious "unresolved" because
- # errcnt != 0. Calling `clone_output' is also supposed to be a
- # no-no (see the comments for clone_output).
- set errcnt 0
+ perror "$test_file_name does not exist." 0
}
}