tests/msvcrt: add test for _splitpath function

Eric Pouech eric.pouech at orange.fr
Thu May 19 04:22:36 CDT 2011


adding c:test.txt (and friends) as input should be also interesting
UNC paths should also be tested

A+

 +    } Paths[] = { {"C:/directory/test.txt", "C:", "/directory/",
> "test", ".txt"},
> +                {"C:\\directory\\test.txt", "C:", "\\directory\\",
> "test", ".txt"},
> +                {"C:\\directory\\test", "C:", "\\directory\\", "test",
> ""},
> +                {"C:\\directory\\.txt", "C:", "\\directory\\", "",
> ".txt"},
> +                {"C:\\directory\\", "C:", "\\directory\\", "", ""},
> +                {"C:\\test.txt", "C:", "\\", "test", ".txt"},
> +                {"C:\\test", "C:", "\\", "test", ""},
> +                {"C:\\.txt", "C:", "\\", "", ".txt"},
> +                {"C:\\", "C:", "\\", "", ""},
> +                {"\\directory\\test.txt", "", "\\directory\\", "test",
> ".txt"},
> +                {"\\directory\\test", "", "\\directory\\", "test", ""},
> +                {"\\directory\\.txt", "", "\\directory\\", "", ".txt"},
> +                {"\\directory\\", "", "\\directory\\", "", ""},
> +                {"\\test.txt", "", "\\", "test", ".txt"},
> +                {"\\test", "", "\\", "test", ""},
> +                {"\\.txt", "", "\\", "", ".txt"},
> +                {"\\", "", "\\", "", ""},
> +                {"test.txt", "", "", "test", ".txt"},
> +                {"test", "", "", "test", ""},
> +                {".txt", "", "", "", ".txt"},
> +                {"", "", "", "", ""}};
> --
> Eric Pouech
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110519/485fc168/attachment.htm>


More information about the wine-devel mailing list