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
3e84960c
Commit
3e84960c
authored
Mar 04, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Improve some failure messages in the pipe tests.
parent
7a4ed158
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
pipe.c
dlls/kernel32/tests/pipe.c
+5
-4
No files found.
dlls/kernel32/tests/pipe.c
View file @
3e84960c
...
...
@@ -670,8 +670,8 @@ static DWORD CALLBACK serverThreadMain4(LPVOID arg)
trace
(
"Server calling overlapped ConnectNamedPipe...
\n
"
);
success
=
ConnectNamedPipe
(
hnp
,
&
oConnect
);
err
=
GetLastError
();
ok
(
!
success
&&
(
err
==
ERROR_IO_PENDING
||
err
==
ERROR_PIPE_CONNECTED
)
,
"overlapped ConnectNamedPipe
\n
"
);
trace
(
"overlapped ConnectNamedPipe returned.
\n
"
);
ok
(
!
success
&&
(
err
==
ERROR_IO_PENDING
||
err
==
ERROR_PIPE_CONNECTED
)
,
"overlapped ConnectNamedPipe got %u err %u
\n
"
,
success
,
err
);
if
(
!
success
&&
err
==
ERROR_IO_PENDING
)
{
trace
(
"ConnectNamedPipe GetQueuedCompletionStatus
\n
"
);
success
=
GetQueuedCompletionStatus
(
hcompletion
,
&
dummy
,
&
compkey
,
&
oResult
,
0
);
...
...
@@ -712,7 +712,7 @@ static DWORD CALLBACK serverThreadMain4(LPVOID arg)
success
=
WriteFile
(
hnp
,
buf
,
readden
,
&
written
,
&
oWrite
);
trace
(
"Server WriteFile returned...
\n
"
);
err
=
GetLastError
();
ok
(
success
||
err
==
ERROR_IO_PENDING
,
"overlapped WriteFile
\n
"
);
ok
(
success
||
err
==
ERROR_IO_PENDING
,
"overlapped WriteFile
failed, err=%u
\n
"
,
err
);
success
=
GetQueuedCompletionStatus
(
hcompletion
,
&
written
,
&
compkey
,
&
oResult
,
10000
);
ok
(
success
,
"WriteFile GetQueuedCompletionStatus failed, errno=%i
\n
"
,
GetLastError
());
...
...
@@ -726,7 +726,8 @@ static DWORD CALLBACK serverThreadMain4(LPVOID arg)
/* finish this connection, wait for next one */
ok
(
FlushFileBuffers
(
hnp
),
"FlushFileBuffers
\n
"
);
ok
(
DisconnectNamedPipe
(
hnp
),
"DisconnectNamedPipe
\n
"
);
success
=
DisconnectNamedPipe
(
hnp
);
ok
(
success
,
"DisconnectNamedPipe failed, err %u
\n
"
,
GetLastError
());
}
ok
(
CloseHandle
(
hnp
),
"CloseHandle named pipe failed, err=%i
\n
"
,
GetLastError
());
...
...
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