diff options
author | Yang Tse <yangsita@gmail.com> | 2012-03-22 04:58:38 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-03-22 04:58:38 +0100 |
commit | 3aab542e77546b344649edeae85157d93989faa5 (patch) | |
tree | 0392c1802c2e5617c1862fc04aa857b8a40d263d /tests/libtest | |
parent | 3c80309c276b8ceac13ab1a4824d216805d45afe (diff) |
test #598: OOM handling fixes
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/lib598.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libtest/lib598.c b/tests/libtest/lib598.c index 8d46c6887..e9c1ad776 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: |