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
195d4018
Commit
195d4018
authored
Mar 22, 2005
by
Jakob Eriksson
Committed by
Alexandre Julliard
Mar 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abort if we can't create a named pipe at all.
parent
461c8307
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
pipe.c
dlls/kernel/tests/pipe.c
+8
-3
No files found.
dlls/kernel/tests/pipe.c
View file @
195d4018
...
...
@@ -700,7 +700,7 @@ static void test_NamedPipe_2(void)
trace
(
"test_NamedPipe_2 returning
\n
"
);
}
static
void
test_DisconnectNamedPipe
(
void
)
static
int
test_DisconnectNamedPipe
(
void
)
{
HANDLE
hnp
;
HANDLE
hFile
;
...
...
@@ -715,7 +715,10 @@ static void test_DisconnectNamedPipe(void)
/* nInBufSize */
1024
,
/* nDefaultWait */
NMPWAIT_USE_DEFAULT_WAIT
,
/* lpSecurityAttrib */
NULL
);
ok
(
hnp
!=
INVALID_HANDLE_VALUE
,
"CreateNamedPipe failed
\n
"
);
if
(
INVALID_HANDLE_VALUE
==
hnp
)
{
trace
(
"Seems we have no named pipes.
\n
"
);
return
1
;
}
ok
(
WriteFile
(
hnp
,
obuf
,
sizeof
(
obuf
),
&
written
,
NULL
)
==
0
&&
GetLastError
()
==
ERROR_PIPE_LISTENING
,
"WriteFile to not-yet-connected pipe
\n
"
);
...
...
@@ -745,12 +748,14 @@ static void test_DisconnectNamedPipe(void)
ok
(
CloseHandle
(
hnp
),
"CloseHandle
\n
"
);
return
0
;
}
START_TEST
(
pipe
)
{
trace
(
"test 1 of 4:
\n
"
);
test_DisconnectNamedPipe
();
if
(
test_DisconnectNamedPipe
())
return
;
trace
(
"test 2 of 4:
\n
"
);
test_CreateNamedPipe_instances_must_match
();
trace
(
"test 3 of 4:
\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