]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib3208: add a final easy_perform as well
authorDaniel Stenberg <daniel@haxx.se>
Sat, 8 Feb 2025 11:49:15 +0000 (12:49 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 8 Feb 2025 13:12:40 +0000 (14:12 +0100)
Make the test also verify using the handle in the other order.

Closes #16262

tests/data/test3208
tests/libtest/lib3208.c

index cc646e86616cc582f60b0c853c16d4efb68491e3..04b3c00413bf611909a959aa18ee5f4382509998 100644 (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\r
-Host: %HOSTIP:%HTTPSPORT\r
-Accept: */*\r
-\r
-GET /%TESTNUMBER HTTP/1.1\r
-Host: %HOSTIP:%HTTPSPORT\r
-Accept: */*\r
-\r
+<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>
index 8a451823d6a0c977f48e1228e656ec2a2d9e0b8b..d54e7c983516cba39f885270f0f09a7f672d1797 100644 (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 */