diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-07-11 18:23:06 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-07-11 18:23:06 +0000 |
commit | 336992cc54583b4ca949401d93ca3194e226d21e (patch) | |
tree | a9ce7a3e39b9158ef72277a9836642e181d793eb /tests/libtest/lib552.c | |
parent | 13afcbd1ebcd9069d8782769aa9c64ab6cd0329f (diff) |
Fixed test 553 to pass the torture test.
Diffstat (limited to 'tests/libtest/lib552.c')
-rw-r--r-- | tests/libtest/lib552.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c index 5a0eb1c68..1c6e23455 100644 --- a/tests/libtest/lib552.c +++ b/tests/libtest/lib552.c @@ -146,10 +146,10 @@ static curlioerr ioctl_callback(CURL * handle, int cmd, void *clientp) int test(char *URL) { CURL *curl; - CURLcode res; + CURLcode res = CURLE_OUT_OF_MEMORY; struct data config; size_t i; - char fill[] = "test data"; + static const char fill[] = "test data"; config.trace_ascii = 1; /* enable ascii tracing */ @@ -190,5 +190,6 @@ int test(char *URL) /* always cleanup */ curl_easy_cleanup(curl); } - return 0; + curl_global_cleanup(); + return (int)res; } |