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
b1c8e059
Commit
b1c8e059
authored
Nov 13, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Nov 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Print the correct status code in ok() messages.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a786dca9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
info.c
dlls/ntdll/tests/info.c
+3
-3
reg.c
dlls/ntdll/tests/reg.c
+1
-1
No files found.
dlls/ntdll/tests/info.c
View file @
b1c8e059
...
...
@@ -288,7 +288,7 @@ static void test_query_process(void)
/* test ReturnLength */
ReturnLength
=
0
;
status
=
pNtQuerySystemInformation
(
SystemProcessInformation
,
NULL
,
0
,
&
ReturnLength
);
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
,
"Expected STATUS_LENGTH_MISMATCH got %08x
\n
"
,
status
);
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
,
"Expected STATUS_
INFO_
LENGTH_MISMATCH got %08x
\n
"
,
status
);
ok
(
ReturnLength
>
0
||
broken
(
ReturnLength
==
0
)
/* NT4, Win2K */
,
"Expected a ReturnLength to show the needed length
\n
"
);
...
...
@@ -1050,7 +1050,7 @@ static void test_query_process_debug_port(int argc, char **argv)
status
=
pNtQueryInformationProcess
(
NULL
,
ProcessDebugPort
,
&
debug_port
,
sizeof
(
debug_port
),
NULL
);
ok
(
status
==
STATUS_INVALID_HANDLE
,
"Expected STATUS_
ACCESS_VIOLATION
, got %#x.
\n
"
,
status
);
ok
(
status
==
STATUS_INVALID_HANDLE
,
"Expected STATUS_
INVALID_HANDLE
, got %#x.
\n
"
,
status
);
status
=
pNtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessDebugPort
,
&
debug_port
,
sizeof
(
debug_port
)
-
1
,
NULL
);
...
...
@@ -1302,7 +1302,7 @@ static void test_query_process_debug_flags(int argc, char **argv)
status
=
pNtQueryInformationProcess
(
NULL
,
ProcessDebugFlags
,
&
debug_flags
,
sizeof
(
debug_flags
),
NULL
);
ok
(
status
==
STATUS_INVALID_HANDLE
||
broken
(
status
==
STATUS_INVALID_INFO_CLASS
)
/* NT4 */
,
"Expected STATUS_
ACCESS_VIOLATION
, got %#x.
\n
"
,
status
);
ok
(
status
==
STATUS_INVALID_HANDLE
||
broken
(
status
==
STATUS_INVALID_INFO_CLASS
)
/* NT4 */
,
"Expected STATUS_
INVALID_HANDLE
, got %#x.
\n
"
,
status
);
status
=
pNtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessDebugFlags
,
&
debug_flags
,
sizeof
(
debug_flags
)
-
1
,
NULL
);
...
...
dlls/ntdll/tests/reg.c
View file @
b1c8e059
...
...
@@ -639,7 +639,7 @@ static void test_NtQueryValueKey(void)
ok
(
status
==
STATUS_SUCCESS
,
"NtSetValueKey Failed: 0x%08x
\n
"
,
status
);
status
=
pNtQueryValueKey
(
key
,
&
ValName
,
KeyValuePartialInformation
,
&
pi
,
sizeof
(
pi
),
&
len
);
ok
(
status
==
STATUS_SUCCESS
,
"NtQueryValueKey should have returned STATUS_
BUFFER_TOO_SMALL
instead of 0x%08x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"NtQueryValueKey should have returned STATUS_
SUCCESS
instead of 0x%08x
\n
"
,
status
);
ok
(
pi
.
Type
==
0xff00ff00
,
"Type=%x
\n
"
,
pi
.
Type
);
ok
(
pi
.
DataLength
==
0
,
"DataLength=%u
\n
"
,
pi
.
DataLength
);
pRtlFreeUnicodeString
(
&
ValName
);
...
...
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