unify fopen() failure error message among tests, allowing

the testsuite to count them as errors of the same kind
This commit is contained in:
Yang Tse 2007-04-05 11:05:36 +00:00
parent 70f9a13ecb
commit a0a79ce853
2 changed files with 4 additions and 2 deletions

View File

@ -409,8 +409,9 @@ static int rlimit(int keep_open)
sprintf(strbuff1, fmt, num_open.rlim_max);
sprintf(strbuff, "stdio fopen() fails with %s fds open()",
strbuff1);
store_errmsg(strbuff, 0);
fprintf(stderr, "%s\n", msgbuff);
sprintf(strbuff, "stdio fopen() fails with lots of fds open()");
store_errmsg(strbuff, 0);
close_file_descriptors();
free(memchunk);
return -12;

View File

@ -412,8 +412,9 @@ static int rlimit(int keep_open)
sprintf(strbuff1, fmt, num_open.rlim_max);
sprintf(strbuff, "stdio fopen() fails with %s fds open()",
strbuff1);
store_errmsg(strbuff, 0);
fprintf(stderr, "%s\n", msgbuff);
sprintf(strbuff, "stdio fopen() fails with lots of fds open()");
store_errmsg(strbuff, 0);
close_file_descriptors();
free(memchunk);
return -10;