summaryrefslogtreecommitdiff
path: root/tests/data/test360
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-02-08 14:05:23 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-02-08 14:05:36 +0100
commit8717016486510d434ed87450060326be9d3366d6 (patch)
tree230920bb97a339ed2852d057c1b236225b915979 /tests/data/test360
parent8a644f3355fafd2c468d12332308459f5641b81a (diff)
downloadcurl-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/test36028
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>