kernel32/tests: Add a broken last error result in test_CopyFileW().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52858
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2022-04-27 09:03:34 -05:00 committed by Alexandre Julliard
parent ae48b2c9ee
commit e015409e74
1 changed files with 4 additions and 2 deletions

View File

@ -902,12 +902,14 @@ static void test_CopyFileW(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = CopyFileW(source, dest, FALSE); ret = CopyFileW(source, dest, FALSE);
ok(ret, "CopyFileW: error %ld\n", GetLastError()); ok(ret, "CopyFileW: error %ld\n", GetLastError());
ok(GetLastError() == ERROR_SUCCESS, "Unexpected error %lu.\n", GetLastError()); ok(GetLastError() == ERROR_SUCCESS || broken(GetLastError() == ERROR_INVALID_PARAMETER) /* some win8 machines */,
"Unexpected error %lu.\n", GetLastError());
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = CopyFileExW(source, dest, NULL, NULL, NULL, 0 ); ret = CopyFileExW(source, dest, NULL, NULL, NULL, 0 );
ok(ret, "CopyFileExW: error %ld\n", GetLastError()); ok(ret, "CopyFileExW: error %ld\n", GetLastError());
ok(GetLastError() == ERROR_SUCCESS, "Unexpected error %lu.\n", GetLastError()); ok(GetLastError() == ERROR_SUCCESS || broken(GetLastError() == ERROR_INVALID_PARAMETER) /* some win8 machines */,
"Unexpected error %lu.\n", GetLastError());
ret = DeleteFileW(source); ret = DeleteFileW(source);
ok(ret, "DeleteFileW: error %ld\n", GetLastError()); ok(ret, "DeleteFileW: error %ld\n", GetLastError());