Commit 80276752 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

kernel32/tests: Add a test for special characters in pipe names.

parent c6393968
...@@ -673,6 +673,14 @@ static void test_CreateNamedPipe(int pipemode) ...@@ -673,6 +673,14 @@ static void test_CreateNamedPipe(int pipemode)
CloseHandle(hnp); CloseHandle(hnp);
hnp = CreateNamedPipeA("\\\\.\\pipe\\a<>*?|\"/b", PIPE_ACCESS_DUPLEX,
PIPE_TYPE_BYTE, 1, 1024, 1024, NMPWAIT_USE_DEFAULT_WAIT, NULL);
ok(hnp != INVALID_HANDLE_VALUE, "failed to create pipe, error %u\n", GetLastError());
hFile = CreateFileA("\\\\.\\pipe\\a<>*?|\"/b", 0, 0, NULL, OPEN_EXISTING, 0, 0);
ok(hFile != INVALID_HANDLE_VALUE, "failed to open pipe, error %u\n", GetLastError());
CloseHandle(hFile);
CloseHandle(hnp);
if (winetest_debug > 1) trace("test_CreateNamedPipe returning\n"); if (winetest_debug > 1) trace("test_CreateNamedPipe returning\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment