]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test390: verify --parallel
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Jun 2022 07:05:24 +0000 (09:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Jun 2022 07:05:25 +0000 (09:05 +0200)
Closes #8985

src/tool_operate.c
tests/data/Makefile.inc
tests/data/test390 [new file with mode: 0644]

index 07766f3c7b3fa0f46cea863c90567fb2ff50c56b..01c46909a02c44d3af8ebce79fd1589e6766276d 100644 (file)
@@ -2140,6 +2140,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
     }
     break;
   }
+  Curl_safefree(state->outfiles);
 
   if(!*added || result) {
     *added = FALSE;
index d849c3b1a7d5e520f6d645be7a7ffc93ad7dfba9..07bdf6ac49eed3a20b56527bb9faf9badf045ab6 100644 (file)
@@ -64,7 +64,7 @@ test361 test362 test363 test364 test365 test366 test367 test368 test369 \
 test370 test371 test372 test373 test374 test375 test376 test378 test379 \
 test380 test381 test383 test384 test385 test386 \
 \
-test391 test392 test393 test394 test395 test396 test397 test398 \
+test390 test391 test392 test393 test394 test395 test396 test397 test398 \
 \
 test400 test401 test402 test403 test404 test405 test406 test407 test408 \
 test409 test410 test411 test412 test413 test414 \
diff --git a/tests/data/test390 b/tests/data/test390
new file mode 100644 (file)
index 0000000..80e8c2b
--- /dev/null
@@ -0,0 +1,48 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+FTP
+parallel
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data nocheck="yes">
+HTTP/1.1 200 OK
+Content-Length: 10001
+Content-Type: text/html
+
+%repeat[1000 x hellohttp!]%
+</data>
+
+<data2 nocheck="yes">
+%repeat[1000 x hello ftp!]%
+</data2>
+
+</reply>
+
+#
+# Client-side
+<client>
+<file name="log/test%TESTNUMBER.txt">
+%repeat[1000 x hellofile!]%
+</file>
+<server>
+http
+ftp
+</server>
+<name>
+curl HTTP, FILE and FTP in parallel
+</name>
+<command option="no-output">
+http://%HOSTIP:%HTTPPORT/%TESTNUMBER file://localhost%FILE_PWD/log/test%TESTNUMBER.txt ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002 --parallel -o log/%TESTNUMBER.a -o log/%TESTNUMBER.b -o log/%TESTNUMBER.c
+</command>
+</client>
+
+#
+<verify>
+</verify>
+</testcase>