diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 14:05:23 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-08 14:05:36 +0100 |
commit | 8717016486510d434ed87450060326be9d3366d6 (patch) | |
tree | 230920bb97a339ed2852d057c1b236225b915979 /tests/data/test360 | |
parent | 8a644f3355fafd2c468d12332308459f5641b81a (diff) | |
download | curl-8717016486510d434ed87450060326be9d3366d6.tar.gz |
curl: add --fail-with-bodybagder/fail-with-body
Prevent both --fail and --fail-with-body on the same command line.
Verify with test 349, 360 and 361.
Closes #6449
Diffstat (limited to 'tests/data/test360')
-rw-r--r-- | tests/data/test360 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/data/test360 b/tests/data/test360 new file mode 100644 index 000000000..f466277b2 --- /dev/null +++ b/tests/data/test360 @@ -0,0 +1,28 @@ +<testcase> +<info> +<keywords> +--fail +--fail-with-body +</keywords> +</info> + +# Client-side +<client> +<server> +http +</server> + <name> +Error on both --fail-with-body and --fail + </name> + <command> +http://%HOSTIP:%HTTPPORT/360 --fail-with-body --fail +</command> +</client> + +# Verify data after the test has been "shot" +<verify> +<errorcode> +2 +</errorcode> +</verify> +</testcase> |