curl: --continue-at is mutually exclusive with --no-clobber

Test 481 verifies

Fixes #15645
Reported-by: Harry Sintonen
Closes #15668
This commit is contained in:
Daniel Stenberg 2024-12-02 14:07:45 +01:00
parent 26ee83ab67
commit ffbcde0022
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 60 additions and 1 deletions

View file

@ -77,7 +77,7 @@ test435 test436 test437 test438 test439 test440 test441 test442 test443 \
test444 test445 test446 test447 test448 test449 test450 test451 test452 \
test453 test454 test455 test456 test457 test458 test459 test460 test461 \
test462 test463 test467 test468 test469 test470 test471 test472 test473 \
test474 test475 test476 test477 test478 test479 test480 \
test474 test475 test476 test477 test478 test479 test480 test481 \
\
test490 test491 test492 test493 test494 test495 test496 test497 test498 \
test499 test500 test501 test502 test503 test504 test505 test506 test507 \

45
tests/data/test481 Normal file
View file

@ -0,0 +1,45 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
--no-clobber
--continue-at
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
http
</server>
<name>
--no-clobber with --continue-at
</name>
<file name="%LOGDIR/%TESTNUMBER">
initial content
</file>
<command option="no-output,no-include">
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --no-clobber -C 1 -o "%LOGDIR/%TESTNUMBER"
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
2
</errorcode>
<stderr mode="text">
curl: --continue-at is mutually exclusive with --no-clobber
curl: option -C: is badly used here
curl: try 'curl --help' or 'curl --manual' for more information
</stderr>
</verify>
</testcase>