summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-05 21:21:26 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-06 09:54:54 +0200
commitf93455eb04b57b2d002244bed1f0b59b94c2f0c7 (patch)
treea403a1dffdc45c2b37fa33a69f1aa0af3b1bb52c /tests/unit
parent8ca54a03ea08a7b0cf0a402018f329bd93124216 (diff)
downloadcurl-f93455eb04b57b2d002244bed1f0b59b94c2f0c7.tar.gz
altsvc: clone setting in curl_easy_duphandlebagder/altsvc-duphandle
The cache content is not duplicated, like other caches, but the setting and specified file name are. Test 1908 is extended to verify this somewhat. Since the duplicated handle gets the same file name, the test unfortunately overwrites the same file twice (with different contents) which makes it hard to check automatically. Closes #5923
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/unit1654.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit1654.c b/tests/unit/unit1654.c
index 79e97631c..6274d0af8 100644
--- a/tests/unit/unit1654.c
+++ b/tests/unit/unit1654.c
@@ -54,7 +54,7 @@ UNITTEST_START
return 1;
result = Curl_altsvc_load(asi, arg);
if(result) {
- Curl_altsvc_cleanup(asi);
+ Curl_altsvc_cleanup(&asi);
return result;
}
curl = curl_easy_init();
@@ -131,7 +131,7 @@ UNITTEST_START
curl_easy_cleanup(curl);
fail:
- Curl_altsvc_cleanup(asi);
+ Curl_altsvc_cleanup(&asi);
return unitfail;
}
UNITTEST_STOP