summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-16 23:19:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:18 -0500
commit4f6225d695eb721ca08ddf46d44a1594bf178358 (patch)
tree9dfa02fefb4e24d8b081bf5243ec9c6454d38fa2 /source4
parentd13e788f20743989ff0d76b13262793027dc66bd (diff)
downloadsamba-4f6225d695eb721ca08ddf46d44a1594bf178358.tar.gz
samba-4f6225d695eb721ca08ddf46d44a1594bf178358.tar.bz2
samba-4f6225d695eb721ca08ddf46d44a1594bf178358.zip
r7655: test the evnt friendly socket_connect() in the LOCAL-SOCKET test
(This used to be commit b9ed92d550f1b821c5402a516eb2dfc2c8d69f0a)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/local/socket.c4
1 files changed, 3 insertions, 1 deletions
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);