kernel32/tests: Fix some test failures on Win9x/WinMe.

This commit is contained in:
Paul Vriens 2009-11-10 14:29:12 +01:00 committed by Alexandre Julliard
parent 9d61f1d72f
commit 159506893b
1 changed files with 10 additions and 4 deletions

View File

@ -650,7 +650,9 @@ static void test_CopyFileA(void)
ret = CopyFileA(source, dest, FALSE);
todo_wine {
ok(!ret && GetLastError() == ERROR_USER_MAPPED_FILE,
ok(!ret, "CopyFileA: expected failure\n");
ok(GetLastError() == ERROR_USER_MAPPED_FILE ||
broken(GetLastError() == ERROR_SHARING_VIOLATION), /* Win9x and WinMe */
"CopyFileA with mapped dest file: expected ERROR_USER_MAPPED_FILE, got %d\n", GetLastError());
}
@ -1325,7 +1327,9 @@ static void test_MoveFileA(void)
ret = MoveFileA(source, dest);
todo_wine {
ok(!ret, "MoveFileA: expected failure\n");
ok(GetLastError() == ERROR_SHARING_VIOLATION, "MoveFileA: expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
ok(GetLastError() == ERROR_SHARING_VIOLATION ||
broken(GetLastError() == ERROR_ACCESS_DENIED), /* Win9x and WinMe */
"MoveFileA: expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
}
CloseHandle(hmapfile);
@ -1343,7 +1347,9 @@ static void test_MoveFileA(void)
ret = MoveFileA(source, dest);
todo_wine {
ok(!ret, "MoveFileA: expected failure\n");
ok(GetLastError() == ERROR_SHARING_VIOLATION, "MoveFileA: expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
ok(GetLastError() == ERROR_SHARING_VIOLATION ||
broken(GetLastError() == ERROR_ACCESS_DENIED), /* Win9x and WinMe */
"MoveFileA: expected ERROR_SHARING_VIOLATION, got %d\n", GetLastError());
}
CloseHandle(hmapfile);