Fix e_f to print the saved errno.

Change-Id: I1ee366717759429f4c62432395344aa924f03183
This commit is contained in:
Lionel Sambuc 2013-08-22 14:09:30 +02:00 committed by Gerrit Code Review
parent e7855d00ef
commit cde59bcba6

View file

@ -111,7 +111,7 @@ void e_f(char *file, int line, int n)
err_number = errno; /* Store before printf can clobber it */
if (errct == 0) printf("\n"); /* finish header */
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) {
printf("Too many errors; test aborted\n");
cleanup();