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
96c6ad4a
Commit
96c6ad4a
authored
Sep 20, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add FILE_APPEND_DATA case to the file access tests.
parent
ab8d704e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
file.c
dlls/kernel32/tests/file.c
+14
-0
No files found.
dlls/kernel32/tests/file.c
View file @
96c6ad4a
...
@@ -3903,6 +3903,9 @@ static void test_file_access(void)
...
@@ -3903,6 +3903,9 @@ static void test_file_access(void)
{
FILE_READ_DATA
|
FILE_WRITE_DATA
,
0
,
0
,
0
},
{
FILE_READ_DATA
|
FILE_WRITE_DATA
,
0
,
0
,
0
},
{
FILE_WRITE_DATA
,
0
,
0
,
ERROR_ACCESS_DENIED
},
{
FILE_WRITE_DATA
,
0
,
0
,
ERROR_ACCESS_DENIED
},
{
FILE_READ_DATA
,
0
,
ERROR_ACCESS_DENIED
,
0
},
{
FILE_READ_DATA
,
0
,
ERROR_ACCESS_DENIED
,
0
},
{
FILE_APPEND_DATA
,
0
,
0
,
ERROR_ACCESS_DENIED
},
{
FILE_READ_DATA
|
FILE_APPEND_DATA
,
0
,
0
,
0
},
{
FILE_WRITE_DATA
|
FILE_APPEND_DATA
,
0
,
0
,
ERROR_ACCESS_DENIED
},
{
0
,
0
,
ERROR_ACCESS_DENIED
,
ERROR_ACCESS_DENIED
},
{
0
,
0
,
ERROR_ACCESS_DENIED
,
ERROR_ACCESS_DENIED
},
};
};
char
path
[
MAX_PATH
],
fname
[
MAX_PATH
];
char
path
[
MAX_PATH
],
fname
[
MAX_PATH
];
...
@@ -3938,6 +3941,17 @@ static void test_file_access(void)
...
@@ -3938,6 +3941,17 @@ static void test_file_access(void)
}
}
else
else
{
{
/* FIXME: remove once Wine is fixed */
if
(
!
ret
&&
(
td
[
i
].
access
&
FILE_APPEND_DATA
))
{
todo_wine
ok
(
ret
,
"%d: WriteFile error %d
\n
"
,
i
,
GetLastError
());
todo_wine
ok
(
bytes
==
2
,
"%d: expected 2, got %u
\n
"
,
i
,
bytes
);
CloseHandle
(
hfile
);
continue
;
}
ok
(
ret
,
"%d: WriteFile error %d
\n
"
,
i
,
GetLastError
());
ok
(
ret
,
"%d: WriteFile error %d
\n
"
,
i
,
GetLastError
());
ok
(
bytes
==
2
,
"%d: expected 2, got %u
\n
"
,
i
,
bytes
);
ok
(
bytes
==
2
,
"%d: expected 2, got %u
\n
"
,
i
,
bytes
);
}
}
...
...
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