mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
test: add test for bad UNC/SMB path in file: URL
This commit is contained in:
parent
d7c103746c
commit
3da4ebad30
@ -189,4 +189,4 @@ test2048 test2049 test2050 test2051 test2052 test2053 test2054 test2055 \
|
|||||||
test2056 test2057 test2058 test2059 test2060 test2061 test2062 test2063 \
|
test2056 test2057 test2058 test2059 test2060 test2061 test2062 test2063 \
|
||||||
test2064 test2065 test2066 test2067 test2068 test2069 \
|
test2064 test2065 test2066 test2067 test2068 test2069 \
|
||||||
\
|
\
|
||||||
test2070 test2071
|
test2070 test2071 test2072
|
||||||
|
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…
Reference in New Issue
Block a user