From 68cc3ff120756977c080333373a08465411c1e05 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 19 Feb 2009 10:46:30 -0600 Subject: [PATCH] kernel32: Add test for renaming file over itself. --- dlls/kernel32/tests/file.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c index 3f5597729cb..906924b1262 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");