From: Yang Tse Date: Thu, 22 Mar 2012 03:58:38 +0000 (+0100) Subject: test #598: OOM handling fixes X-Git-Tag: curl-7_25_0~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3aab542e77546b344649edeae85157d93989faa5;p=thirdparty%2Fcurl.git test #598: OOM handling fixes --- diff --git a/tests/libtest/lib598.c b/tests/libtest/lib598.c index 8d46c68878..e9c1ad776f 100644 --- a/tests/libtest/lib598.c +++ b/tests/libtest/lib598.c @@ -47,6 +47,10 @@ int test(char *URL) test_setopt(curl, CURLOPT_VERBOSE, 1L); res = curl_easy_perform(curl); + if(res) { + fprintf(stderr, "retrieve 1 failed\n"); + goto test_cleanup; + } curl_easy_reset(curl); @@ -55,6 +59,8 @@ int test(char *URL) test_setopt(curl, CURLOPT_VERBOSE, 1L); res = curl_easy_perform(curl); + if(res) + fprintf(stderr, "retrieve 2 failed\n"); test_cleanup: