test: add test for bad UNC/SMB path in file: URL

This commit is contained in:
Matthew Kerwin 2017-11-24 22:39:18 +10:00 committed by Daniel Stenberg
parent d7c103746c
commit 3da4ebad30
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 39 additions and 1 deletions

38
tests/data/test2072 Normal file
View file

@ -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>