diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-03-17 00:00:40 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-03-17 14:07:20 +0100 |
commit | ba1fba9cad7b92e0e1328468aef41436e1fcc050 (patch) | |
tree | 45271b641db77876740a54afb035d0d69cd804bf | |
parent | e2452cf60e53df3a1f41959914968a9afca02bab (diff) | |
download | curl-ba1fba9cad7b92e0e1328468aef41436e1fcc050.tar.gz |
test422: verify --next used without a prior URL
Closes #10782
-rw-r--r-- | tests/data/Makefile.inc | 2 | ||||
-rw-r--r-- | tests/data/test422 | 44 |
2 files changed, 45 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 172652691..7ed03a247 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -68,7 +68,7 @@ test380 test381 test383 test384 test385 test386 test387 test388 test389 \ test390 test391 test392 test393 test394 test395 test396 test397 test398 \ test399 test400 test401 test402 test403 test404 test405 test406 test407 \ test408 test409 test410 test411 test412 test413 test414 test415 test416 \ -test417 test418 test419 test420 test421 \ +test417 test418 test419 test420 test421 test422 \ \ test430 test431 test432 test433 test434 test435 test436 \ \ diff --git a/tests/data/test422 b/tests/data/test422 new file mode 100644 index 000000000..2caaa4915 --- /dev/null +++ b/tests/data/test422 @@ -0,0 +1,44 @@ +<testcase> +<info> +<keywords> +cmdline +--next +</keywords> +</info> + +# +# Server-side +<reply> +</reply> + +# +# Client-side +<client> +<server> +none +</server> +<name> +use --next with missing URL before it +</name> +<command> +-O -I --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<stderr mode="text"> +curl: missing URL before --next +curl: option --next: is badly used here +%if manual +curl: try 'curl --help' or 'curl --manual' for more information +%else +curl: try 'curl --help' for more information +%endif +</stderr> +<errorcode> +2 +</errorcode> +</verify> +</testcase> |