mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:13:33 +03:00
test: add test for bad UNC/SMB path in file: URL
This commit is contained in:
parent
d7c103746c
commit
3da4ebad30
2 changed files with 39 additions and 1 deletions
38
tests/data/test2072
Normal file
38
tests/data/test2072
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue