diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-05-25 15:23:55 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-08-13 09:54:15 -0400 |
commit | b120c5f28876fd9efe032a6dbecebfaaff7dfd14 (patch) | |
tree | cca3a64d3d4a96d1e49450ebeff374659ed17d2b /source4/torture/rpc | |
parent | 813bdf466d1e0262c7b4bdf98343451db08c60f6 (diff) | |
download | samba-b120c5f28876fd9efe032a6dbecebfaaff7dfd14.tar.gz samba-b120c5f28876fd9efe032a6dbecebfaaff7dfd14.tar.bz2 samba-b120c5f28876fd9efe032a6dbecebfaaff7dfd14.zip |
torture: use tevent_ functions names instead of the legacy event_ ones
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/echo.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/lsa.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/netlogon.c | 4 | ||||
-rw-r--r-- | source4/torture/rpc/schannel.c | 8 |
4 files changed, 8 insertions, 8 deletions
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<ASYNC_COUNT;i++) { if (done2[i] == false && done1[i] == true) { diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index 4fbf36c894..c09a2daad2 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -866,7 +866,7 @@ static bool test_LookupSids_async(struct dcerpc_binding_handle *b, } while (replies >= 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;i<ASYNC_COUNT;i++) { diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c index 245f33c991..3bfed696e8 100644 --- a/source4/torture/rpc/schannel.c +++ b/source4/torture/rpc/schannel.c @@ -763,8 +763,8 @@ bool torture_rpc_schannel_bench1(struct torture_context *torture) } while (NT_STATUS_IS_OK(s->error) && 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; |