]> git.saurik.com Git - wxWidgets.git/commitdiff
added test for parsing c:\\aaa\bbb\ccc paths (aaa shouldn't be interpreted as network...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Dec 2006 14:13:23 +0000 (14:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Dec 2006 14:13:23 +0000 (14:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/filename/filenametest.cpp

index 813079ca8e54de2e9d1096401c280a7eb8bbff12..3faef80e7a73a33bdf90f726312c7a176d6689f9 100644 (file)
@@ -78,6 +78,10 @@ static struct FileNameInfo
     { _T("\\\\server\\foo.bar"), _T("server"), _T("\\"), _T("foo"), _T("bar"), true, wxPATH_DOS },
     { _T("\\\\server\\dir\\foo.bar"), _T("server"), _T("\\dir"), _T("foo"), _T("bar"), true, wxPATH_DOS },
 
+    // consecutive [back]slashes should be treated as single occurrences of
+    // them and not interpreted as share names if there is a volume name
+    { _T("c:\\aaa\\bbb\\ccc"), _T("c"), _T("\\aaa\\bbb"), _T("ccc"), _T(""), true, wxPATH_DOS },
+    { _T("c:\\\\aaa\\bbb\\ccc"), _T("c"), _T("\\aaa\\bbb"), _T("ccc"), _T(""), true, wxPATH_DOS },
 
     // wxFileName support for Mac file names is broken currently
 #if 0