summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-06-18 08:45:02 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-06-18 08:45:02 +0200
commitaa9865fd0d6a687240fc2c72960fe40854a6fcd8 (patch)
tree98e75f99202092442e8bf6fd0bc7877b0ea45ca5
parenteb6d51211a291a8541128e2c6ad1c88d0a9a2d1e (diff)
downloadcurl-aa9865fd0d6a687240fc2c72960fe40854a6fcd8.tar.gz
test1179: verify error message for non-existing cmdline option
-rw-r--r--tests/data/Makefile.inc2
-rw-r--r--tests/data/test117939
2 files changed, 40 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
index 4ce9e7420..d6f7915be 100644
--- a/tests/data/Makefile.inc
+++ b/tests/data/Makefile.inc
@@ -139,7 +139,7 @@ test1160 test1161 test1162 test1163 test1164 test1165 test1166 test1167 \
test1168 \
\
test1170 test1171 test1172 test1173 test1174 test1175 test1176 test1177 \
-test1178 \
+test1178 test1179 \
\
test1190 test1191 test1192 test1193 test1194 test1195 test1196 \
\
diff --git a/tests/data/test1179 b/tests/data/test1179
new file mode 100644
index 000000000..44d2697d0
--- /dev/null
+++ b/tests/data/test1179
@@ -0,0 +1,39 @@
+<testcase>
+<info>
+<keywords>
+cmdline
+wrong option
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+none
+</server>
+ <name>
+error when using unknown command line option
+ </name>
+ <command>
+--never-implemented http://never.use.this.example.com/1179
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+2
+</errorcode>
+<stderr>
+curl: option --never-implemented: is unknown
+curl: try 'curl --help' or 'curl --manual' for more information
+</stderr>
+</verify>
+</testcase>