From 31b77c1877a807ab6184b22ab2310e096536b9b5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 20 May 2019 10:51:53 +0200 Subject: curl: report error for "--no-" on non-boolean options Reported-by: Olen Andoni Fixes #3906 Closes #3907 --- tests/data/Makefile.inc | 2 +- tests/data/test333 | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 tests/data/test333 (limited to 'tests/data') 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 @@ + + + +command-line + + + +# +# Server-side + + + +# +# Client-side + + +none + + +Try a non-boolean command line option with --no- + + +--no-proxy "hey" http://%HOSTIP:%HTTPPORT/333 + + + +# +# Verify data after the test has been "shot" + +# detected the bad --no- prefix + +2 + + + -- cgit v1.2.3