Commit 68cc3ff1 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

kernel32: Add test for renaming file over itself.

parent d28e5a05
...@@ -564,6 +564,9 @@ static void test_CopyFileA(void) ...@@ -564,6 +564,9 @@ static void test_CopyFileA(void)
ret = GetTempFileNameA(temp_path, prefix, 0, source); ret = GetTempFileNameA(temp_path, prefix, 0, source);
ok(ret != 0, "GetTempFileNameA error %d\n", GetLastError()); 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 */ /* make the source have not zero size */
hfile = CreateFileA(source, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0 ); hfile = CreateFileA(source, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0 );
ok(hfile != INVALID_HANDLE_VALUE, "failed to open source file\n"); ok(hfile != INVALID_HANDLE_VALUE, "failed to open source file\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment