mirror of
https://github.com/curl/curl.git
synced 2026-07-10 06:07:15 +03:00
unify fopen() failure error message among tests, allowing
the testsuite to count them as errors of the same kind
This commit is contained in:
parent
70f9a13ecb
commit
a0a79ce853
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue