From: Matthew Kerwin Date: Fri, 24 Nov 2017 12:39:18 +0000 (+1000) Subject: test: add test for bad UNC/SMB path in file: URL X-Git-Tag: curl-7_57_0~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3da4ebad30c049b5d58df1f8bccf6686554a300f;p=thirdparty%2Fcurl.git test: add test for bad UNC/SMB path in file: URL --- diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 199ffe2480..2a2ca508a8 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -189,4 +189,4 @@ test2048 test2049 test2050 test2051 test2052 test2053 test2054 test2055 \ test2056 test2057 test2058 test2059 test2060 test2061 test2062 test2063 \ test2064 test2065 test2066 test2067 test2068 test2069 \ \ -test2070 test2071 +test2070 test2071 test2072 diff --git a/tests/data/test2072 b/tests/data/test2072 new file mode 100644 index 0000000000..2949c25028 --- /dev/null +++ b/tests/data/test2072 @@ -0,0 +1,38 @@ + + + +FILE + + + + + + +# Client-side + + +file + + +file:// with SMB path + + +file:////bad-host%PWD/log/test1145.txt + + +foo + bar +bar + foo +moo + + + +# Verify data after the test has been "shot" + +# CURLE_URL_MALFORMAT is error code 3 + +3 + + +