Austin English : kernel32: Add test for renaming file over itself.

Alexandre Julliard julliard at winehq.org
Fri Feb 20 12:49:33 CST 2009


Module: wine
Branch: master
Commit: 68cc3ff120756977c080333373a08465411c1e05
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=68cc3ff120756977c080333373a08465411c1e05

Author: Austin English <austinenglish at gmail.com>
Date:   Thu Feb 19 10:46:30 2009 -0600

kernel32: Add test for renaming file over itself.

---

 dlls/kernel32/tests/file.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c
index 3f55977..906924b 100644
--- a/dlls/kernel32/tests/file.c
+++ b/dlls/kernel32/tests/file.c
@@ -564,6 +564,9 @@ static void test_CopyFileA(void)
     ret = GetTempFileNameA(temp_path, prefix, 0, source);
     ok(ret != 0, "GetTempFileNameA error %d\n", GetLastError());
 
+    ret = MoveFileA(source, source);
+    todo_wine ok(ret, "MoveFileA: failed, error %d\n", GetLastError());
+
     /* make the source have not zero size */
     hfile = CreateFileA(source, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0 );
     ok(hfile != INVALID_HANDLE_VALUE, "failed to open source file\n");




More information about the wine-cvs mailing list