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
ea9c9fe5
Commit
ea9c9fe5
authored
Oct 15, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Oct 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add test for pipe name with a trailing backslash.
parent
ebe35f6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
pipe.c
dlls/kernel32/tests/pipe.c
+11
-0
No files found.
dlls/kernel32/tests/pipe.c
View file @
ea9c9fe5
...
...
@@ -682,6 +682,17 @@ static void test_CreateNamedPipe(int pipemode)
CloseHandle
(
hFile
);
CloseHandle
(
hnp
);
hnp
=
CreateNamedPipeA
(
"
\\\\
.
\\
pipe
\\
trailingslash
\\
"
,
PIPE_ACCESS_DUPLEX
,
PIPE_TYPE_BYTE
,
1
,
1024
,
1024
,
NMPWAIT_USE_DEFAULT_WAIT
,
NULL
);
ok
(
hnp
!=
INVALID_HANDLE_VALUE
,
"failed to create pipe, error %lu
\n
"
,
GetLastError
());
hFile
=
CreateFileA
(
"
\\\\
.
\\
pipe
\\
trailingslash"
,
0
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
ok
(
hFile
==
INVALID_HANDLE_VALUE
,
"expected opening pipe to fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"expected ERROR_FILE_NOT_FOUND, got %lu
\n
"
,
GetLastError
());
hFile
=
CreateFileA
(
"
\\\\
.
\\
pipe
\\
trailingslash
\\
"
,
0
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
ok
(
hFile
!=
INVALID_HANDLE_VALUE
,
"failed to open pipe, error %lu
\n
"
,
GetLastError
());
CloseHandle
(
hFile
);
CloseHandle
(
hnp
);
if
(
winetest_debug
>
1
)
trace
(
"test_CreateNamedPipe returning
\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