Paul Vriens : kernel32/tests: Add extra tests for SetCurrentDirectory.
Alexandre Julliard
julliard at winehq.org
Mon Sep 22 07:04:41 CDT 2008
Module: wine
Branch: master
Commit: 1c5043e73d65ec198d3da918e1e9d23ffa29b6f5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1c5043e73d65ec198d3da918e1e9d23ffa29b6f5
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Sun Sep 21 12:41:36 2008 +0200
kernel32/tests: Add extra tests for SetCurrentDirectory.
---
dlls/kernel32/tests/path.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c
index d158df1..e8e6c1e 100644
--- a/dlls/kernel32/tests/path.c
+++ b/dlls/kernel32/tests/path.c
@@ -465,6 +465,14 @@ static void test_CurrentDirectoryA(CHAR *origdir, CHAR *newdir)
/* starting with a '.' */
sprintf(tmpstr,".\\%s",LONGDIR);
test_setdir(newdir,tmpstr,tmpstr1,1,"check 9");
+/* change to root without a trailing backslash. The function call succeeds
+ but the directory is not changed.
+*/
+ strcpy(tmpstr,"C:");
+ test_setdir(newdir,tmpstr,newdir,1,"check 10");
+/* works however with a trailing backslash */
+ strcpy(tmpstr,"C:\\");
+ test_setdir(newdir,tmpstr,NULL,1,"check 11");
}
/* Cleanup the mess we made while executing these tests */
More information about the wine-cvs
mailing list