test390: verify --parallel

Closes #8985
This commit is contained in:
Daniel Stenberg 2022-06-10 09:05:24 +02:00
parent 5121d98c22
commit 95f5aae9ad
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 50 additions and 1 deletions

View File

@ -2140,6 +2140,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
}
break;
}
Curl_safefree(state->outfiles);
if(!*added || result) {
*added = FALSE;

View 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 \

48
tests/data/test390 Normal file
View File

@ -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>