Commit e85f0e0c authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

kernel32/tests: Test that ConnectNamedPipe() works immediately after…

kernel32/tests: Test that ConnectNamedPipe() works immediately after DisconnectNamedPipe() without waiting for the client to close. Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 780ede1c
......@@ -2060,6 +2060,20 @@ static DWORD CALLBACK overlapped_server(LPVOID arg)
ok(ret == 1, "ret %d\n", ret);
DisconnectNamedPipe(pipe);
ret = ConnectNamedPipe(pipe, &ol);
err = GetLastError();
ok(ret == 0, "ret %d\n", ret);
ok(err == ERROR_IO_PENDING, "gle %d\n", err);
CancelIo(pipe);
ret = WaitForSingleObjectEx(ol.hEvent, INFINITE, 1);
ok(ret == WAIT_OBJECT_0, "ret %x\n", ret);
ret = GetOverlappedResult(pipe, &ol, &num, 1);
err = GetLastError();
ok(ret == 0, "ret %d\n", ret);
ok(err == ERROR_OPERATION_ABORTED, "gle %d\n", err);
CloseHandle(ol.hEvent);
CloseHandle(pipe);
return 1;
......
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