mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08: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
@ -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…
Reference in New Issue
Block a user