Resend: Another fix for kernel file test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Tested on Win2k and Win98. MoveFile returns ERROR_ALREADY_EXISTS
when the destination exists.

 -Hans

Changelog
  MoveFile returns ERROR_ALREADY_EXISTS, not ERROR_FILE_EXISTS

Index: dlls/kernel/tests/file.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/file.c,v
retrieving revision 1.25
diff -u -r1.25 file.c
--- dlls/kernel/tests/file.c	8 Dec 2003 22:21:20 -0000	1.25
+++ dlls/kernel/tests/file.c	9 Dec 2003 14:20:36 -0000
@@ -669,7 +669,7 @@
     ok(ret != 0, "GetTempFileNameA error %ld", GetLastError());
 
     ret = MoveFileA(source, dest);
-    ok(!ret && GetLastError() == ERROR_FILE_EXISTS,
+    ok(!ret && GetLastError() == ERROR_ALREADY_EXISTS,
        "MoveFileA: unexpected error %ld\n", GetLastError());
 
     ret = DeleteFileA(dest);
@@ -745,7 +745,7 @@
     ok(ret != 0, "GetTempFileNameW error %ld", GetLastError());
 
     ret = MoveFileW(source, dest);
-    ok(!ret && GetLastError() == ERROR_FILE_EXISTS,
+    ok(!ret && GetLastError() == ERROR_ALREADY_EXISTS,
        "CopyFileW: unexpected error %ld\n", GetLastError());
 
     ret = DeleteFileW(source);

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux