mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
s4:torture/rpc: avoid using dcerpc_event_context()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
095daba81d
commit
0400025237
@ -236,7 +236,6 @@ static bool test_sleep(struct torture_context *tctx,
|
||||
struct timeval snd[ASYNC_COUNT];
|
||||
struct timeval rcv[ASYNC_COUNT];
|
||||
struct timeval diff[ASYNC_COUNT];
|
||||
struct tevent_context *ctx;
|
||||
int total_done = 0;
|
||||
struct dcerpc_binding_handle *b = p->binding_handle;
|
||||
|
||||
@ -256,9 +255,8 @@ static bool test_sleep(struct torture_context *tctx,
|
||||
tevent_req_set_callback(req[i], test_sleep_done, &done1[i]);
|
||||
}
|
||||
|
||||
ctx = dcerpc_event_context(p);
|
||||
while (total_done < ASYNC_COUNT) {
|
||||
torture_assert(tctx, tevent_loop_once(ctx) == 0,
|
||||
torture_assert(tctx, tevent_loop_once(tctx->ev) == 0,
|
||||
"Event context loop failed");
|
||||
for (i=0;i<ASYNC_COUNT;i++) {
|
||||
if (done2[i] == false && done1[i] == true) {
|
||||
|
@ -3732,7 +3732,7 @@ 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, tevent_loop_once(dcerpc_event_context(p)), 0,
|
||||
torture_assert_int_equal(tctx, tevent_loop_once(tctx->ev), 0,
|
||||
"tevent_loop_once failed");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user