lib3208: add a final easy_perform as well

Make the test also verify using the handle in the other order.

Closes #16262
This commit is contained in:
Daniel Stenberg 2025-02-08 12:49:15 +01:00
parent 242a1439e7
commit 5963f83176
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 20 additions and 10 deletions

View File

@ -36,7 +36,7 @@ lib%TESTNUMBER
</tool>
<name>
curl_easy_perform then curl_multi_perform the same handle
easy_perform, multi_perform, easy_perform the same handle
</name>
<command>
https://%HOSTIP:%HTTPSPORT/%TESTNUMBER
@ -46,15 +46,19 @@ https://%HOSTIP:%HTTPSPORT/%TESTNUMBER
#
# Verify data after the test has been "shot"
<verify>
<protocol>
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPSPORT
Accept: */*
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPSPORT
Accept: */*
<protocol crlf="yes">
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPSPORT
Accept: */*
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPSPORT
Accept: */*
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPSPORT
Accept: */*
</protocol>
</verify>
</testcase>

View File

@ -48,6 +48,7 @@ CURLcode test(char *URL)
easy_setopt(curl, CURLOPT_URL, URL);
easy_setopt(curl, CURLOPT_HEADER, 1L);
easy_setopt(curl, CURLOPT_VERBOSE, 1L);
/* no peer verify */
easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
@ -85,6 +86,11 @@ CURLcode test(char *URL)
get it */
i = msg->data.result;
curl_multi_remove_handle(multi, curl);
/* make a third transfer with the easy handle */
curl_easy_perform(curl);
test_cleanup:
/* undocumented cleanup sequence - type UA */