[NTDLL_APITEST]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 21 Apr 2015 10:50:12 +0000 (10:50 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 21 Apr 2015 10:50:12 +0000 (10:50 +0000)
- Add some more tests for RtlDoesFileExists_*, in particular passing NT paths
CORE-9523

svn path=/trunk/; revision=67334

rostests/apitests/ntdll/RtlDoesFileExists.c

index 20d594b..155e8da 100644 (file)
@@ -139,6 +139,7 @@ START_TEST(RtlDoesFileExists)
         { L"C:\\/\\%ls",                                TRUE },
         { L"C:\\%ls\\",                                 TRUE },
         { L"C:\\%ls\\ThisFolderExists",                 TRUE },
+        { L"C:\\%ls\\ThisFolderExists\\",               TRUE },
         { L"C:\\%ls\\ThisFolderExists ",                TRUE },
         { L"C:\\%ls\\ThisFolderExists  ",               TRUE },
         { L"C:\\%ls\\ThisFolderExists   ",              TRUE },
@@ -170,6 +171,13 @@ START_TEST(RtlDoesFileExists)
         { L"NUL",                                       FALSE },
         { L"CON",                                       FALSE },
         { L"COM1",                                      FALSE },
+        { L"\\?",                                       FALSE },
+        { L"\\??",                                      FALSE },
+        { L"\\??\\",                                    FALSE },
+        { L"\\??\\C",                                   FALSE },
+        { L"\\??\\C:",                                  FALSE },
+        { L"\\??\\C:\\",                                FALSE }, // TRUE on Win7
+        { L"\\??\\C:\\%ls\\ThisFolderExists",           FALSE }, // TRUE on Win7
     };
     ULONG i;
     WCHAR FileName[MAX_PATH];