summaryrefslogtreecommitdiff
path: root/tests/libtest/lib1502.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-12-23 21:33:26 +0100
committerYang Tse <yangsita@gmail.com>2012-12-23 21:50:41 +0100
commit5ed03ebe52160ab9c1cf8f569258a210084b782f (patch)
tree13f97864e76d4a93ca4faffe99e789244fc5bab2 /tests/libtest/lib1502.c
parent3456bbc4ccf5c4bd51bdad0d3866c70c901daade (diff)
downloadgnurl-5ed03ebe52160ab9c1cf8f569258a210084b782f.tar.gz
gnurl-5ed03ebe52160ab9c1cf8f569258a210084b782f.tar.bz2
gnurl-5ed03ebe52160ab9c1cf8f569258a210084b782f.zip
test 1503: same as 1502 but with a different cleanup sequence
Diffstat (limited to 'tests/libtest/lib1502.c')
-rw-r--r--tests/libtest/lib1502.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/libtest/lib1502.c b/tests/libtest/lib1502.c
index c24006358..4cf89c4ab 100644
--- a/tests/libtest/lib1502.c
+++ b/tests/libtest/lib1502.c
@@ -106,11 +106,22 @@ int test(char *URL)
test_cleanup:
+#ifdef LIB1502
/* undocumented cleanup sequence - type UA */
curl_multi_cleanup(multi);
curl_easy_cleanup(easy);
curl_global_cleanup();
+#endif
+
+#ifdef LIB1503
+ /* proper cleanup sequence - type PA */
+
+ curl_multi_remove_handle(multi, easy);
+ curl_multi_cleanup(multi);
+ curl_easy_cleanup(easy);
+ curl_global_cleanup();
+#endif
curl_slist_free_all(dns_cache_list);