Commit a0a79ce8 authored by Yang Tse's avatar Yang Tse
Browse files

unify fopen() failure error message among tests, allowing

the testsuite to count them as errors of the same kind
parent 70f9a13e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
+2 −1
Original line number Diff line number Diff line
@@ -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;