Commit e015409e authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

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

parent ae48b2c9
......@@ -902,12 +902,14 @@ static void test_CopyFileW(void)
SetLastError(0xdeadbeef);
ret = CopyFileW(source, dest, FALSE);
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);
ret = CopyFileExW(source, dest, NULL, NULL, NULL, 0 );
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);
ok(ret, "DeleteFileW: error %ld\n", GetLastError());
......
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