From b120c5f28876fd9efe032a6dbecebfaaff7dfd14 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 25 May 2010 15:23:55 -0400 Subject: torture: use tevent_ functions names instead of the legacy event_ ones --- source4/torture/rpc/echo.c | 2 +- source4/torture/rpc/lsa.c | 2 +- source4/torture/rpc/netlogon.c | 4 ++-- source4/torture/rpc/schannel.c | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index 643b21fa7f..db6d2414a9 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -258,7 +258,7 @@ static bool test_sleep(struct torture_context *tctx, ctx = dcerpc_event_context(p); while (total_done < ASYNC_COUNT) { - torture_assert(tctx, event_loop_once(ctx) == 0, + torture_assert(tctx, tevent_loop_once(ctx) == 0, "Event context loop failed"); for (i=0;i= 0 && replies < num_async_requests) { - event_loop_once(tctx->ev); + tevent_loop_once(tctx->ev); } talloc_free(req); diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 70e1fd9ebb..0fe594cf7e 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -3453,8 +3453,8 @@ static bool test_GetDomainInfo_async(struct torture_context *tctx, /* even with this flush per request a w2k3 server seems to clag with multiple outstanding requests. bleergh. */ - torture_assert_int_equal(tctx, event_loop_once(dcerpc_event_context(p)), 0, - "event_loop_once failed"); + torture_assert_int_equal(tctx, tevent_loop_once(dcerpc_event_context(p)), 0, + "tevent_loop_once failed"); } for (i=0;ierror) && s->nprocs != s->nconns) { - int ev_ret = event_loop_once(torture->ev); - torture_assert(torture, ev_ret == 0, "event_loop_once failed"); + int ev_ret = tevent_loop_once(torture->ev); + torture_assert(torture, ev_ret == 0, "tevent_loop_once failed"); #endif } torture_assert_ntstatus_ok(torture, s->error, "Failed establish a connect"); @@ -851,8 +851,8 @@ bool torture_rpc_schannel_bench1(struct torture_context *torture) end = timeval_add(&start, s->timelimit, 0); while (NT_STATUS_IS_OK(s->error) && !timeval_expired(&end)) { - int ev_ret = event_loop_once(torture->ev); - torture_assert(torture, ev_ret == 0, "event_loop_once failed"); + int ev_ret = tevent_loop_once(torture->ev); + torture_assert(torture, ev_ret == 0, "tevent_loop_once failed"); } torture_assert_ntstatus_ok(torture, s->error, "Failed some request"); s->stopped = true; -- cgit