From 4517988f68e5bdc472e728264488c380ea37ae41 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 22 Apr 2013 19:09:12 +0000 Subject: [PATCH] [NTDLL_APITEST] - Add test cases showing that RtlDosPathNameToNtPathName_U strips trailing dots svn path=/trunk/; revision=58832 --- rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c b/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c index db295edefd6..d66519d0c91 100644 --- a/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c +++ b/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c @@ -395,6 +395,9 @@ int main() test(PREP0 "C:\\foo\\..\\" , "C:\\" , NULL); test(PREP1 "C:\\foo\\..\\" , "C:\\" , NULL); test(PREP2 "C:\\foo\\..\\" , "C:\\foo\\..\\" , NULL); + test(PREP0 "C:\\foo." , "C:\\foo" , "foo"); + test(PREP1 "C:\\foo." , "C:\\foo" , "foo"); + test(PREP2 "C:\\foo." , "C:\\foo." , "foo."); test(PREP0 "C:\\f\\b\\.." , "C:\\f" , "f"); test(PREP1 "C:\\f\\b\\.." , "C:\\f" , "f");