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
b210eeb1
Commit
b210eeb1
authored
Jun 08, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Test waiting on a disconnected client pipe.
parent
0bca442f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
pipe.c
dlls/kernel32/tests/pipe.c
+3
-0
No files found.
dlls/kernel32/tests/pipe.c
View file @
b210eeb1
...
...
@@ -836,6 +836,7 @@ static int test_DisconnectNamedPipe(void)
char
ibuf
[
32
];
DWORD
written
;
DWORD
readden
;
DWORD
ret
;
SetLastError
(
0xdeadbeef
);
hnp
=
CreateNamedPipe
(
PIPENAME
,
PIPE_ACCESS_DUPLEX
,
PIPE_TYPE_BYTE
|
PIPE_WAIT
,
...
...
@@ -876,6 +877,8 @@ static int test_DisconnectNamedPipe(void)
"ReadFile from disconnected pipe with bytes waiting
\n
"
);
ok
(
!
DisconnectNamedPipe
(
hnp
)
&&
GetLastError
()
==
ERROR_PIPE_NOT_CONNECTED
,
"DisconnectNamedPipe worked twice
\n
"
);
ret
=
WaitForSingleObject
(
hFile
,
0
);
ok
(
ret
==
WAIT_TIMEOUT
,
"WaitForSingleObject returned %X
\n
"
,
ret
);
ok
(
CloseHandle
(
hFile
),
"CloseHandle
\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