From: Daniel Stenberg Date: Fri, 10 Jun 2022 07:05:24 +0000 (+0200) Subject: test390: verify --parallel X-Git-Tag: curl-7_84_0~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95f5aae9ad4be58db7543662c586b13cf2490f12;p=thirdparty%2Fcurl.git test390: verify --parallel Closes #8985 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 07766f3c7b..01c46909a0 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -2140,6 +2140,7 @@ static CURLcode single_transfer(struct GlobalConfig *global, } break; } + Curl_safefree(state->outfiles); if(!*added || result) { *added = FALSE; diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index d849c3b1a7..07bdf6ac49 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -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 index 0000000000..80e8c2b708 --- /dev/null +++ b/tests/data/test390 @@ -0,0 +1,48 @@ + + + +HTTP +FTP +parallel + + + +# +# Server-side + + +HTTP/1.1 200 OK +Content-Length: 10001 +Content-Type: text/html + +%repeat[1000 x hellohttp!]% + + + +%repeat[1000 x hello ftp!]% + + + + +# +# Client-side + + +%repeat[1000 x hellofile!]% + + +http +ftp + + +curl HTTP, FILE and FTP in parallel + + +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 + + + +# + + +