From: Lionel Sambuc Date: Thu, 22 Aug 2013 12:09:30 +0000 (+0200) Subject: Fix e_f to print the saved errno. X-Git-Tag: v3.3.0~823 X-Git-Url: http://zhaoyanbai.com/repos/addsub.png?a=commitdiff_plain;h=cde59bcba67ee6abcff60ce5b41c68cc7638387e;p=minix.git Fix e_f to print the saved errno. Change-Id: I1ee366717759429f4c62432395344aa924f03183 --- diff --git a/test/common.c b/test/common.c index d0bebb75b..d530d5559 100644 --- a/test/common.c +++ b/test/common.c @@ -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();