summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-05 20:48:16 +0200
committerVolker Lendecke <vl@samba.org>2009-04-06 21:32:06 +0200
commitdec928e884f492c7a5e5e8c87e2ff0c1944da5f1 (patch)
treeab62ee13dfe149e1dc7bd9719e2d64c79d261a54 /source3/torture
parent0a4cdad324291d6c91b569c4fc8362a8383965fe (diff)
downloadsamba-dec928e884f492c7a5e5e8c87e2ff0c1944da5f1.tar.gz
samba-dec928e884f492c7a5e5e8c87e2ff0c1944da5f1.tar.bz2
samba-dec928e884f492c7a5e5e8c87e2ff0c1944da5f1.zip
Convert cli_echo to tevent_req
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index c62bdfe0fb..a4c1721fe6 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -5101,8 +5101,6 @@ static bool run_windows_write(int dummy)
static bool run_cli_echo(int dummy)
{
struct cli_state *cli;
- struct event_context *ev = event_context_init(NULL);
- struct async_req *req;
NTSTATUS status;
printf("starting cli_echo test\n");
@@ -5111,21 +5109,10 @@ static bool run_cli_echo(int dummy)
}
cli_sockopt(cli, sockops);
- req = cli_echo_send(ev, ev, cli, 5, data_blob_const("hello", 5));
- if (req == NULL) {
- d_printf("cli_echo_send failed\n");
- return false;
- }
+ status = cli_echo(cli, 5, data_blob_const("hello", 5));
- while (req->state < ASYNC_REQ_DONE) {
- event_loop_once(ev);
- }
-
- status = cli_echo_recv(req);
d_printf("cli_echo returned %s\n", nt_errstr(status));
- TALLOC_FREE(req);
-
torture_close_connection(cli);
return NT_STATUS_IS_OK(status);
}