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
55542281
Commit
55542281
authored
Sep 25, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Sep 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Don't test function directly when reporting GetLastError().
parent
0ba0f505
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
pipe.c
dlls/ntdll/tests/pipe.c
+9
-3
No files found.
dlls/ntdll/tests/pipe.c
View file @
55542281
...
...
@@ -238,8 +238,10 @@ static DWORD WINAPI thread(PVOID main_thread)
Sleep
(
400
);
if
(
main_thread
)
{
DWORD
ret
;
userapc_called
=
FALSE
;
ok
(
pQueueUserAPC
(
&
userapc
,
main_thread
,
0
),
"can't queue user apc, GetLastError: %x
\n
"
,
GetLastError
());
ret
=
pQueueUserAPC
(
&
userapc
,
main_thread
,
0
);
ok
(
ret
,
"can't queue user apc, GetLastError: %x
\n
"
,
GetLastError
());
CloseHandle
(
main_thread
);
}
...
...
@@ -264,6 +266,7 @@ static void test_alertable(void)
HANDLE
hPipe
;
NTSTATUS
res
;
HANDLE
hThread
;
DWORD
ret
;
memset
(
&
iosb
,
0x55
,
sizeof
(
iosb
));
...
...
@@ -275,7 +278,8 @@ static void test_alertable(void)
/* queue an user apc before calling listen */
userapc_called
=
FALSE
;
ok
(
pQueueUserAPC
(
&
userapc
,
GetCurrentThread
(),
0
),
"can't queue user apc, GetLastError: %x
\n
"
,
GetLastError
());
ret
=
pQueueUserAPC
(
&
userapc
,
GetCurrentThread
(),
0
);
ok
(
ret
,
"can't queue user apc, GetLastError: %x
\n
"
,
GetLastError
());
res
=
listen_pipe
(
hPipe
,
hEvent
,
&
iosb
,
TRUE
);
todo_wine
ok
(
res
==
STATUS_CANCELLED
,
"NtFsControlFile returned %x
\n
"
,
res
);
...
...
@@ -332,6 +336,7 @@ static void test_nonalertable(void)
HANDLE
hPipe
;
NTSTATUS
res
;
HANDLE
hThread
;
DWORD
ret
;
memset
(
&
iosb
,
0x55
,
sizeof
(
iosb
));
...
...
@@ -345,7 +350,8 @@ static void test_nonalertable(void)
ok
(
hThread
!=
INVALID_HANDLE_VALUE
,
"can't create thread, GetLastError: %x
\n
"
,
GetLastError
());
userapc_called
=
FALSE
;
ok
(
pQueueUserAPC
(
&
userapc
,
GetCurrentThread
(),
0
),
"can't queue user apc, GetLastError: %x
\n
"
,
GetLastError
());
ret
=
pQueueUserAPC
(
&
userapc
,
GetCurrentThread
(),
0
);
ok
(
ret
,
"can't queue user apc, GetLastError: %x
\n
"
,
GetLastError
());
res
=
listen_pipe
(
hPipe
,
hEvent
,
&
iosb
,
TRUE
);
todo_wine
ok
(
!
res
,
"NtFsControlFile returned %x
\n
"
,
res
);
...
...
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