Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c7375427
Commit
c7375427
authored
Jul 01, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jul 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix test failures because of a broken ReplaceFile in win2k.
parent
f4cbdc96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
file.c
dlls/kernel32/tests/file.c
+8
-3
No files found.
dlls/kernel32/tests/file.c
View file @
c7375427
...
...
@@ -2074,7 +2074,8 @@ static void test_ReplaceFileA(void)
ok
(
ret
!=
ERROR_UNABLE_TO_REMOVE_REPLACED
,
"ReplaceFileA: unexpected error %d
\n
"
,
GetLastError
());
/* make sure that the replacement file still exists */
hReplacementFile
=
CreateFileA
(
replacement
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
ok
(
hReplacementFile
!=
INVALID_HANDLE_VALUE
,
ok
(
hReplacementFile
!=
INVALID_HANDLE_VALUE
||
broken
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
),
/* win2k */
"unexpected error, replacement file should still exist %d
\n
"
,
GetLastError
());
CloseHandle
(
hReplacementFile
);
ret
=
SetFileAttributesA
(
replaced
,
FILE_ATTRIBUTE_NORMAL
);
...
...
@@ -2107,7 +2108,9 @@ static void test_ReplaceFileA(void)
/* delete temporary files, replacement and replaced are already deleted */
ret
=
DeleteFileA
(
backup
);
ok
(
ret
,
"DeleteFileA: error (backup) %d
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
ERROR_ACCESS_DENIED
),
/* win2k */
"DeleteFileA: error (backup) %d
\n
"
,
GetLastError
());
}
/*
...
...
@@ -2178,7 +2181,9 @@ static void test_ReplaceFileW(void)
"ReplaceFileW: unexpected error %d
\n
"
,
GetLastError
());
ret
=
DeleteFileW
(
backup
);
ok
(
ret
,
"DeleteFileW: error %d
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
GetLastError
()
==
ERROR_ACCESS_DENIED
),
/* win2k */
"DeleteFileW: error (backup) %d
\n
"
,
GetLastError
());
}
START_TEST
(
file
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment