Zebediah Figura : ntdll/tests: Add more tests for DOS to NT path conversion.
Alexandre Julliard
julliard at winehq.org
Thu Mar 5 16:35:26 CST 2020
Module: wine
Branch: master
Commit: 4e044ff0d95e62f440021a92e1a748300788daff
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4e044ff0d95e62f440021a92e1a748300788daff
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Mar 5 11:14:10 2020 -0600
ntdll/tests: Add more tests for DOS to NT path conversion.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/tests/path.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dlls/ntdll/tests/path.c b/dlls/ntdll/tests/path.c
index 2f082b9cdd..0541f560ac 100644
--- a/dlls/ntdll/tests/path.c
+++ b/dlls/ntdll/tests/path.c
@@ -426,6 +426,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"c:foo/bar", L"\\??\\C:\\windows\\foo\\bar", 19},
{L"c:./foo", L"\\??\\C:\\windows\\foo", 15},
{L"c:/./foo", L"\\??\\c:\\foo", 7},
+ {L"c:/..", L"\\??\\c:\\", -1},
{L"c:/foo/.", L"\\??\\c:\\foo", 7},
{L"c:/foo/./bar", L"\\??\\c:\\foo\\bar", 11},
{L"c:/foo/../bar", L"\\??\\c:\\bar", 7},
@@ -440,6 +441,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"AUX" , L"\\??\\AUX", -1},
{L"COM1" , L"\\??\\COM1", -1},
{L"?<>*\"|:", L"\\??\\C:\\windows\\?<>*\"|:", 15},
+ {L"?:", L"\\??\\?:\\", -1},
{L"\\\\foo", L"\\??\\UNC\\foo", -1},
{L"//foo", L"\\??\\UNC\\foo", -1},
@@ -465,6 +467,15 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"//?/foo/.", L"\\??\\foo", 4},
{L"//?/foo/..", L"\\??\\", -1},
+ {L"\\\\.", L"\\??\\", -1},
+ {L"\\\\.\\", L"\\??\\", -1},
+ {L"\\\\.\\/", L"\\??\\", -1},
+ {L"\\\\.\\foo", L"\\??\\foo", 4},
+ {L"\\\\.\\foo/", L"\\??\\foo\\", -1},
+ {L"\\\\.\\foo/bar", L"\\??\\foo\\bar", 8},
+ {L"\\\\.\\foo/.", L"\\??\\foo", 4},
+ {L"\\\\.\\foo/..", L"\\??\\", -1},
+
{L"\\\\?", L"\\??\\", -1},
{L"\\\\?\\", L"\\??\\", -1},
More information about the wine-cvs
mailing list