Zebediah Figura : ntdll/tests: Add more tests for RtlDosPathNameToNtPathName_U().
Alexandre Julliard
julliard at winehq.org
Wed Feb 3 15:39:27 CST 2021
Module: wine
Branch: master
Commit: f2f69a8799cd4dd6ab6c61845cd17d0df656e6fc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f2f69a8799cd4dd6ab6c61845cd17d0df656e6fc
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Tue Feb 2 18:17:13 2021 -0600
ntdll/tests: Add more tests for RtlDosPathNameToNtPathName_U().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/tests/path.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/dlls/ntdll/tests/path.c b/dlls/ntdll/tests/path.c
index 6b3be9e9541..5342d101b4f 100644
--- a/dlls/ntdll/tests/path.c
+++ b/dlls/ntdll/tests/path.c
@@ -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 */ },
More information about the wine-cvs
mailing list