aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test333
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-05-20 10:51:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-05-20 19:04:54 +0200
commit31b77c1877a807ab6184b22ab2310e096536b9b5 (patch)
treeeb2e4bee9ab6207abf74b850cfbc3614af2bcc41 /tests/data/test333
parent0da8441298569dfd714e7b21f74aab373b95d2f7 (diff)
curl: report error for "--no-" on non-boolean options
Reported-by: Olen Andoni Fixes #3906 Closes #3907
Diffstat (limited to 'tests/data/test333')
-rw-r--r--tests/data/test33335
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/data/test333 b/tests/data/test333
new file mode 100644
index 000000000..198af9c86
--- /dev/null
+++ b/tests/data/test333
@@ -0,0 +1,35 @@
+<testcase>
+<info>
+<keywords>
+command-line
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+none
+</server>
+ <name>
+Try a non-boolean command line option with --no-
+ </name>
+ <command>
+--no-proxy "hey" http://%HOSTIP:%HTTPPORT/333
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+# detected the bad --no- prefix
+<errorcode>
+2
+</errorcode>
+</verify>
+</testcase>