aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1268
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-08-15 09:17:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-08-15 23:05:14 +0200
commit099f37e9c5779a5701735b40e7e4b09ce33a4786 (patch)
treef790921a827ac157c1399552ac505ed14ef54ef8 /tests/data/test1268
parentac86eabdbeef84c27f3351e1f72903552d9fb851 (diff)
curl: warn the user if a given file name looks like an option
... simply because this is usually a sign of the user having omitted the file name and the next option is instead "eaten" by the parser as a file name. Add test1268 to verify Closes #2885
Diffstat (limited to 'tests/data/test1268')
-rw-r--r--tests/data/test126838
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/data/test1268 b/tests/data/test1268
new file mode 100644
index 000000000..f3e52fba4
--- /dev/null
+++ b/tests/data/test1268
@@ -0,0 +1,38 @@
+<testcase>
+<info>
+<keywords>
+warning
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+none
+</server>
+ <name>
+file name argument looks like a flag
+ </name>
+ <command>
+--stderr log/moo1268 --unix-socket -k hej://moo
+</command>
+</client>
+
+<verify>
+<file name="log/moo1268">
+Warning: The file name argument '-k' looks like a flag.
+curl: (1) Protocol "hej" not supported or disabled in libcurl
+</file>
+
+# we expect an error since we provide a weird URL
+<errorcode>
+1
+</errorcode>
+</verify>
+</testcase>