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

Alexandre Julliard julliard at winehq.org
Tue Apr 12 13:38:04 CDT 2022


Module: wine
Branch: oldstable
Commit: bd444692a92b3e66b637673299db5ce415bc3427
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=bd444692a92b3e66b637673299db5ce415bc3427

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>
(cherry picked from commit f2f69a8799cd4dd6ab6c61845cd17d0df656e6fc)
Signed-off-by: Michael Stefaniuc <mstefani 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 47afaf2aa3a..cd6b9d3a623 100644
--- a/dlls/ntdll/tests/path.c
+++ b/dlls/ntdll/tests/path.c
@@ -441,6 +441,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},
@@ -485,6 +497,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},
@@ -494,6 +507,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},
@@ -503,6 +517,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},
@@ -519,6 +534,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},
@@ -535,6 +551,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