summaryrefslogtreecommitdiff
path: root/tests
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
parent0da8441298569dfd714e7b21f74aab373b95d2f7 (diff)
downloadgnurl-31b77c1877a807ab6184b22ab2310e096536b9b5.tar.gz
gnurl-31b77c1877a807ab6184b22ab2310e096536b9b5.tar.bz2
gnurl-31b77c1877a807ab6184b22ab2310e096536b9b5.zip
curl: report error for "--no-" on non-boolean options
Reported-by: Olen Andoni Fixes #3906 Closes #3907
Diffstat (limited to 'tests')
-rw-r--r--tests/data/Makefile.inc2
-rw-r--r--tests/data/test33335
2 files changed, 36 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
index 9b26b1e0a..afea1fb83 100644
--- a/tests/data/Makefile.inc
+++ b/tests/data/Makefile.inc
@@ -56,7 +56,7 @@ test289 test290 test291 test292 test293 test294 test295 test296 test297 \
test298 test299 test300 test301 test302 test303 test304 test305 test306 \
test307 test308 test309 test310 test311 test312 test313 test314 test315 \
test316 test317 test318 test319 test320 test321 test322 test323 test324 \
-test325 test326 test327 test328 test329 test330 test331 test332 \
+test325 test326 test327 test328 test329 test330 test331 test332 test333 \
\
test340 \
\
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>