ntdll/tests: Add more tests for RtlDosPathNameToNtPathName_U().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-02-02 18:17:13 -06:00 committed by Alexandre Julliard
parent 32854b7ee3
commit f2f69a8799
1 changed files with 17 additions and 0 deletions

View File

@ -436,6 +436,18 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"c:/", L"\\??\\c:\\", -1},
{L"c:/foo", L"\\??\\c:\\foo", 7},
{L"c:/foo.", L"\\??\\c:\\foo", 7},
{L"c:/foo ", L"\\??\\c:\\foo", 7},
{L"c:/foo . .", L"\\??\\c:\\foo", 7},
{L"c:/foo.a", L"\\??\\c:\\foo.a", 7},
{L"c:/foo a", L"\\??\\c:\\foo a", 7},
{L"c:/foo*", L"\\??\\c:\\foo*", 7},
{L"c:/foo*a", L"\\??\\c:\\foo*a", 7},
{L"c:/foo?", L"\\??\\c:\\foo?", 7},
{L"c:/foo?a", L"\\??\\c:\\foo?a", 7},
{L"c:/foo<", L"\\??\\c:\\foo<", 7},
{L"c:/foo<a", L"\\??\\c:\\foo<a", 7},
{L"c:/foo>", L"\\??\\c:\\foo>", 7},
{L"c:/foo>a", L"\\??\\c:\\foo>a", 7},
{L"c:/foo/", L"\\??\\c:\\foo\\", -1},
{L"c:/foo//", L"\\??\\c:\\foo\\", -1},
{L"C:/foo", L"\\??\\C:\\foo", 7},
@ -477,6 +489,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"//./foo/bar", L"\\??\\foo\\bar", 8},
{L"//./foo/.", L"\\??\\foo", 4},
{L"//./foo/..", L"\\??\\", -1},
{L"//./foo. . ", L"\\??\\foo", 4},
{L"//?", L"\\??\\", -1},
{L"//?/", L"\\??\\", -1},
@ -486,6 +499,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"//?/foo/bar", L"\\??\\foo\\bar", 8},
{L"//?/foo/.", L"\\??\\foo", 4},
{L"//?/foo/..", L"\\??\\", -1},
{L"//?/foo. . ", L"\\??\\foo", 4},
{L"\\\\.", L"\\??\\", -1},
{L"\\\\.\\", L"\\??\\", -1},
@ -495,6 +509,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"\\\\.\\foo/bar", L"\\??\\foo\\bar", 8},
{L"\\\\.\\foo/.", L"\\??\\foo", 4},
{L"\\\\.\\foo/..", L"\\??\\", -1},
{L"\\\\.\\foo. . ", L"\\??\\foo", 4},
{L"\\\\?", L"\\??\\", -1},
{L"\\\\?\\", L"\\??\\", -1},
@ -511,6 +526,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"\\\\?\\foo\\bar",L"\\??\\foo\\bar", 8},
{L"\\\\?\\foo\\.", L"\\??\\foo\\.", 8},
{L"\\\\?\\foo\\..", L"\\??\\foo\\..", 8},
{L"\\\\?\\foo. . ", L"\\??\\foo. . ", 4},
{L"\\??", L"\\??\\C:\\??", 7},
{L"\\??\\", L"\\??\\C:\\??\\", -1},
@ -527,6 +543,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"\\??\\foo\\bar", L"\\??\\foo\\bar", 8},
{L"\\??\\foo\\.", L"\\??\\foo\\.", 8},
{L"\\??\\foo\\..", L"\\??\\foo\\..", 8},
{L"\\??\\foo. . ", L"\\??\\foo. . ", 4},
{L"CONIN$", L"\\??\\CONIN$", -1, L"\\??\\C:\\windows\\CONIN$" /* winxp */ },
{L"CONOUT$", L"\\??\\CONOUT$", -1, L"\\??\\C:\\windows\\CONOUT$" /* winxp */ },