summaryrefslogtreecommitdiff
path: root/tests/data/test2072
diff options
context:
space:
mode:
authorMatthew Kerwin <matthew@kerwin.net.au>2017-11-24 22:39:18 +1000
committerDaniel Stenberg <daniel@haxx.se>2017-11-24 23:13:16 +0100
commit3da4ebad30c049b5d58df1f8bccf6686554a300f (patch)
tree2062d213bca1dd3313e11ef3a7ec43b0a850db27 /tests/data/test2072
parentd7c103746cb3d446a879123e48f18e4bd8ceb314 (diff)
downloadcurl-3da4ebad30c049b5d58df1f8bccf6686554a300f.tar.gz
test: add test for bad UNC/SMB path in file: URL
Diffstat (limited to 'tests/data/test2072')
-rw-r--r--tests/data/test207238
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/data/test2072 b/tests/data/test2072
new file mode 100644
index 000000000..2949c2502
--- /dev/null
+++ b/tests/data/test2072
@@ -0,0 +1,38 @@
+<testcase>
+<info>
+<keywords>
+FILE
+</keywords>
+</info>
+
+<reply>
+</reply>
+
+# Client-side
+<client>
+<server>
+file
+</server>
+<name>
+file:// with SMB path
+</name>
+<command>
+file:////bad-host%PWD/log/test1145.txt
+</command>
+<file name="log/test1145.txt">
+foo
+ bar
+bar
+ foo
+moo
+</file>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+# CURLE_URL_MALFORMAT is error code 3
+<errorcode>
+3
+</errorcode>
+</verify>
+</testcase>