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
b9bf5abe
Commit
b9bf5abe
authored
Nov 17, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix share mode for some delete-on-close/delete disposition tests.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
35ec9211
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
file.c
dlls/ntdll/tests/file.c
+4
-1
No files found.
dlls/ntdll/tests/file.c
View file @
b9bf5abe
...
...
@@ -3155,10 +3155,13 @@ static void test_file_disposition_information(void)
todo_wine
ok
(
res
==
STATUS_OBJECT_NAME_NOT_FOUND
||
broken
(
res
==
STATUS_DELETE_PENDING
),
"got %#lx
\n
"
,
res
);
/* can't open the deleted file */
handle2
=
CreateFileA
(
buffer
,
DELETE
,
FILE_SHARE_DELETE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
handle2
=
CreateFileA
(
buffer
,
DELETE
,
FILE_SHARE_DELETE
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
todo_wine
ok
(
handle2
==
INVALID_HANDLE_VALUE
,
"CreateFile should fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
||
broken
(
GetLastError
()
==
ERROR_ACCESS_DENIED
),
"got %lu
\n
"
,
GetLastError
());
if
(
handle2
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
handle2
);
CloseHandle
(
handle
);
fileDeleted
=
GetFileAttributesA
(
buffer
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
ok
(
fileDeleted
,
"File should have been deleted
\n
"
);
...
...
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