From 4f6225d695eb721ca08ddf46d44a1594bf178358 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 16 Jun 2005 23:19:35 +0000 Subject: r7655: test the evnt friendly socket_connect() in the LOCAL-SOCKET test (This used to be commit b9ed92d550f1b821c5402a516eb2dfc2c8d69f0a) --- source4/torture/local/socket.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/torture/local') diff --git a/source4/torture/local/socket.c b/source4/torture/local/socket.c index 3b4707b06a..8f8e10b3c5 100644 --- a/source4/torture/local/socket.c +++ b/source4/torture/local/socket.c @@ -22,6 +22,7 @@ #include "includes.h" #include "lib/socket/socket.h" +#include "lib/events/events.h" #define CHECK_STATUS(status, correct) do { \ if (!NT_STATUS_EQUAL(status, correct)) { \ @@ -139,6 +140,7 @@ static BOOL test_tcp(TALLOC_CTX *mem_ctx) DATA_BLOB blob, blob2; size_t sent, nread; BOOL ret = True; + struct event_context *ev = event_context_init(mem_ctx); printf("TESTING TCP SOCKETS\n"); @@ -162,7 +164,7 @@ static BOOL test_tcp(TALLOC_CTX *mem_ctx) srv_port = socket_get_my_port(sock1); printf("server port is %d\n", srv_port); - status = socket_connect(sock2, NULL, 0, srv_addr, srv_port, 0); + status = socket_connect_ev(sock2, NULL, 0, srv_addr, srv_port, 0, ev); CHECK_STATUS(status, NT_STATUS_OK); status = socket_accept(sock1, &sock3); -- cgit