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
0ea07db6
Commit
0ea07db6
authored
Jan 27, 2022
by
Fabian Maurer
Committed by
Alexandre Julliard
Jan 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Avoid "misleading indentation" warnings.
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d8b37d66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
23 deletions
+23
-23
file.c
dlls/ntdll/tests/file.c
+19
-19
info.c
dlls/ntdll/tests/info.c
+1
-1
reg.c
dlls/ntdll/tests/reg.c
+3
-3
No files found.
dlls/ntdll/tests/file.c
View file @
0ea07db6
...
...
@@ -1113,7 +1113,7 @@ static void test_file_io_completion(void)
U
(
iosb
).
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
server
,
&
iosb
,
&
fci
,
sizeof
(
fci
),
FileCompletionInformation
);
ok
(
res
==
STATUS_INVALID_PARAMETER
,
"NtSetInformationFile failed: %#x
\n
"
,
res
);
todo_wine
todo_wine
ok
(
U
(
iosb
).
Status
==
0xdeadbeef
,
"wrong status %#x
\n
"
,
U
(
iosb
).
Status
);
CloseHandle
(
client
);
CloseHandle
(
server
);
...
...
@@ -3020,20 +3020,20 @@ static void test_file_disposition_information(void)
res
=
pNtSetInformationFile
(
handle
,
&
io
,
&
fdi
,
sizeof
fdi
,
FileDispositionInformation
);
ok
(
res
==
STATUS_SUCCESS
,
"unexpected FileDispositionInformation result (expected STATUS_SUCCESS, got %x)
\n
"
,
res
);
res
=
nt_get_file_attrs
(
buffer
,
&
fdi2
);
todo_wine
todo_wine
ok
(
res
==
STATUS_DELETE_PENDING
,
"got %#x
\n
"
,
res
);
/* can't open the deleted file */
handle3
=
CreateFileA
(
buffer
,
DELETE
,
FILE_SHARE_DELETE
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
todo_wine
todo_wine
ok
(
handle3
==
INVALID_HANDLE_VALUE
,
"CreateFile should fail
\n
"
);
if
(
handle3
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
handle3
);
todo_wine
if
(
handle3
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
handle3
);
todo_wine
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"got %u
\n
"
,
GetLastError
());
/* can't open the deleted file (wrong sharing mode) */
handle3
=
CreateFileA
(
buffer
,
DELETE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
ok
(
handle3
==
INVALID_HANDLE_VALUE
,
"CreateFile should fail
\n
"
);
todo_wine
todo_wine
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"got %u
\n
"
,
GetLastError
());
CloseHandle
(
handle
);
fileDeleted
=
GetFileAttributesA
(
buffer
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
...
...
@@ -3153,12 +3153,12 @@ todo_wine
fileDeleted
=
GetFileAttributesA
(
buffer
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
ok
(
!
fileDeleted
,
"File shouldn't have been deleted
\n
"
);
res
=
nt_get_file_attrs
(
buffer
,
&
fdi2
);
todo_wine
todo_wine
ok
(
res
==
STATUS_DELETE_PENDING
,
"got %#x
\n
"
,
res
);
/* can't open the deleted file */
handle2
=
CreateFileA
(
buffer
,
DELETE
,
FILE_SHARE_DELETE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
ok
(
handle2
==
INVALID_HANDLE_VALUE
,
"CreateFile should fail
\n
"
);
todo_wine
todo_wine
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"got %u
\n
"
,
GetLastError
());
CloseHandle
(
handle
);
fileDeleted
=
GetFileAttributesA
(
buffer
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
...
...
@@ -3202,13 +3202,13 @@ todo_wine
fileDeleted
=
GetFileAttributesA
(
buffer
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
ok
(
!
fileDeleted
,
"Directory shouldn't have been deleted
\n
"
);
res
=
nt_get_file_attrs
(
buffer
,
&
fdi2
);
todo_wine
todo_wine
ok
(
res
==
STATUS_DELETE_PENDING
,
"got %#x
\n
"
,
res
);
/* can't open the deleted directory */
handle2
=
CreateFileA
(
buffer
,
DELETE
,
FILE_SHARE_DELETE
,
NULL
,
OPEN_EXISTING
,
FILE_FLAG_BACKUP_SEMANTICS
,
0
);
todo_wine
todo_wine
ok
(
handle2
==
INVALID_HANDLE_VALUE
,
"CreateFile should fail
\n
"
);
todo_wine
todo_wine
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"got %u
\n
"
,
GetLastError
());
if
(
handle2
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
handle2
);
CloseHandle
(
handle
);
...
...
@@ -3227,20 +3227,20 @@ todo_wine
res
=
pNtSetInformationFile
(
handle2
,
&
io
,
&
fdi
,
sizeof
fdi
,
FileDispositionInformation
);
ok
(
res
==
STATUS_SUCCESS
,
"unexpected FileDispositionInformation result (expected STATUS_SUCCESS, got %x)
\n
"
,
res
);
res
=
nt_get_file_attrs
(
buffer
,
&
fdi2
);
todo_wine
todo_wine
ok
(
res
==
STATUS_DELETE_PENDING
,
"got %#x
\n
"
,
res
);
/* can't open the deleted directory */
handle3
=
CreateFileA
(
buffer
,
DELETE
,
FILE_SHARE_DELETE
,
NULL
,
OPEN_EXISTING
,
FILE_FLAG_BACKUP_SEMANTICS
,
0
);
todo_wine
todo_wine
ok
(
handle3
==
INVALID_HANDLE_VALUE
,
"CreateFile should fail
\n
"
);
if
(
handle3
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
handle3
);
todo_wine
if
(
handle3
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
handle3
);
todo_wine
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"got %u
\n
"
,
GetLastError
());
/* can't open the deleted directory (wrong sharing mode) */
handle3
=
CreateFileA
(
buffer
,
DELETE
,
0
,
NULL
,
OPEN_EXISTING
,
FILE_FLAG_BACKUP_SEMANTICS
,
0
);
ok
(
handle3
==
INVALID_HANDLE_VALUE
,
"CreateFile should fail
\n
"
);
todo_wine
todo_wine
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"got %u
\n
"
,
GetLastError
());
CloseHandle
(
handle2
);
fileDeleted
=
GetFileAttributesA
(
buffer
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
...
...
@@ -4231,7 +4231,7 @@ static void test_NtCreateFile(void)
/* FIXME: leave only 'else' case below once Wine is fixed */
if
(
ret
!=
td
[
i
].
attrib_out
)
{
todo_wine
todo_wine
ok
(
ret
==
td
[
i
].
attrib_out
,
"%d: expected %#x got %#x
\n
"
,
i
,
td
[
i
].
attrib_out
,
ret
);
SetFileAttributesW
(
path
,
td
[
i
].
attrib_out
);
}
...
...
dlls/ntdll/tests/info.c
View file @
0ea07db6
...
...
@@ -2251,7 +2251,7 @@ static void test_query_process_image_file_name(void)
buffer
=
heap_alloc
(
ReturnLength
);
status
=
pNtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessImageFileName
,
buffer
,
ReturnLength
,
&
ReturnLength
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08x
\n
"
,
status
);
todo_wine
todo_wine
ok
(
!
memcmp
(
buffer
->
Buffer
,
deviceW
,
sizeof
(
deviceW
)),
"Expected image name to begin with
\\
Device
\\
, got %s
\n
"
,
wine_dbgstr_wn
(
buffer
->
Buffer
,
buffer
->
Length
/
sizeof
(
WCHAR
)));
...
...
dlls/ntdll/tests/reg.c
View file @
0ea07db6
...
...
@@ -374,9 +374,9 @@ static void test_NtOpenKey(void)
attr
.
Length
=
sizeof
(
attr
);
key
=
(
HANDLE
)
0xdeadbeef
;
status
=
pNtOpenKey
(
&
key
,
0
,
&
attr
);
todo_wine
todo_wine
ok
(
status
==
STATUS_ACCESS_DENIED
,
"Expected STATUS_ACCESS_DENIED, got: 0x%08x
\n
"
,
status
);
todo_wine
todo_wine
ok
(
!
key
,
"key = %p
\n
"
,
key
);
if
(
status
==
STATUS_SUCCESS
)
NtClose
(
key
);
...
...
@@ -386,7 +386,7 @@ todo_wine
key
=
(
HANDLE
)
0xdeadbeef
;
status
=
pNtOpenKey
(
&
key
,
KEY_READ
,
&
attr
);
todo_wine
ok
(
status
==
STATUS_OBJECT_PATH_SYNTAX_BAD
,
"NtOpenKey Failed: 0x%08x
\n
"
,
status
);
todo_wine
todo_wine
ok
(
!
key
,
"key = %p
\n
"
,
key
);
pRtlFreeUnicodeString
(
&
str
);
...
...
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