Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3e6b503a
Commit
3e6b503a
authored
Aug 09, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Use todo_wine_if().
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b00d68a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
file.c
dlls/kernel32/tests/file.c
+4
-11
No files found.
dlls/kernel32/tests/file.c
View file @
3e6b503a
...
...
@@ -4358,17 +4358,10 @@ static void test_file_access(void)
else
{
/* FIXME: Remove once Wine is fixed */
if
((
td
[
j
].
access
&
(
GENERIC_READ
|
GENERIC_WRITE
))
||
(
!
(
td
[
i
].
access
&
(
GENERIC_WRITE
|
FILE_WRITE_DATA
))
&&
(
td
[
j
].
access
&
FILE_WRITE_DATA
))
||
(
!
(
td
[
i
].
access
&
(
GENERIC_READ
|
FILE_READ_DATA
))
&&
(
td
[
j
].
access
&
FILE_READ_DATA
))
||
(
!
(
td
[
i
].
access
&
(
GENERIC_WRITE
))
&&
(
td
[
j
].
access
&
FILE_APPEND_DATA
)))
{
todo_wine
ok
(
!
ret
,
"DuplicateHandle(%#x => %#x) should fail
\n
"
,
td
[
i
].
access
,
td
[
j
].
access
);
todo_wine
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"expected ERROR_ACCESS_DENIED, got %d
\n
"
,
GetLastError
());
}
else
todo_wine_if
((
td
[
j
].
access
&
(
GENERIC_READ
|
GENERIC_WRITE
)
||
(
!
(
td
[
i
].
access
&
(
GENERIC_WRITE
|
FILE_WRITE_DATA
))
&&
(
td
[
j
].
access
&
FILE_WRITE_DATA
))
||
(
!
(
td
[
i
].
access
&
(
GENERIC_READ
|
FILE_READ_DATA
))
&&
(
td
[
j
].
access
&
FILE_READ_DATA
))
||
(
!
(
td
[
i
].
access
&
(
GENERIC_WRITE
))
&&
(
td
[
j
].
access
&
FILE_APPEND_DATA
))))
{
ok
(
!
ret
,
"DuplicateHandle(%#x => %#x) should fail
\n
"
,
td
[
i
].
access
,
td
[
j
].
access
);
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"expected ERROR_ACCESS_DENIED, got %d
\n
"
,
GetLastError
());
...
...
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