Fix e_f to print the saved errno.
Change-Id: I1ee366717759429f4c62432395344aa924f03183
This commit is contained in:
parent
e7855d00ef
commit
cde59bcba6
@ -111,7 +111,7 @@ void e_f(char *file, int line, int n)
|
|||||||
err_number = errno; /* Store before printf can clobber it */
|
err_number = errno; /* Store before printf can clobber it */
|
||||||
if (errct == 0) printf("\n"); /* finish header */
|
if (errct == 0) printf("\n"); /* finish header */
|
||||||
printf("%s:%d: Subtest %d, error %d, errno %d: %s\n",
|
printf("%s:%d: Subtest %d, error %d, errno %d: %s\n",
|
||||||
file, line, subtest, n, errno, strerror(errno));
|
file, line, subtest, n, err_number, strerror(err_number));
|
||||||
if (++errct > max_error) {
|
if (++errct > max_error) {
|
||||||
printf("Too many errors; test aborted\n");
|
printf("Too many errors; test aborted\n");
|
||||||
cleanup();
|
cleanup();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user