diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-09-05 21:21:26 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-06 09:54:54 +0200 |
commit | f93455eb04b57b2d002244bed1f0b59b94c2f0c7 (patch) | |
tree | a403a1dffdc45c2b37fa33a69f1aa0af3b1bb52c /tests/unit | |
parent | 8ca54a03ea08a7b0cf0a402018f329bd93124216 (diff) | |
download | curl-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.c | 4 |
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 |