summaryrefslogtreecommitdiff
path: root/source4/lib/messaging/tests
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-05-25 15:25:26 -0400
committerSimo Sorce <idra@samba.org>2011-08-13 09:54:15 -0400
commit47b64573c0d41d418d441ffc40325b822bfadb26 (patch)
tree4b3396c2c7080ee4ae8e0b2b9db85c56e694217b /source4/lib/messaging/tests
parentb120c5f28876fd9efe032a6dbecebfaaff7dfd14 (diff)
downloadsamba-47b64573c0d41d418d441ffc40325b822bfadb26.tar.gz
samba-47b64573c0d41d418d441ffc40325b822bfadb26.tar.bz2
samba-47b64573c0d41d418d441ffc40325b822bfadb26.zip
s4:messaging: use tevent_ function names instead of legacy event_ ones
Diffstat (limited to 'source4/lib/messaging/tests')
-rw-r--r--source4/lib/messaging/tests/irpc.c6
-rw-r--r--source4/lib/messaging/tests/messaging.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/messaging/tests/irpc.c b/source4/lib/messaging/tests/irpc.c
index 554a7efa99..c94765a167 100644
--- a/source4/lib/messaging/tests/irpc.c
+++ b/source4/lib/messaging/tests/irpc.c
@@ -74,7 +74,7 @@ static void deferred_echodata(struct tevent_context *ev, struct tevent_timer *te
static NTSTATUS irpc_EchoData(struct irpc_message *irpc, struct echo_EchoData *r)
{
irpc->defer_reply = true;
- event_add_timed(irpc->ev, irpc, timeval_zero(), deferred_echodata, irpc);
+ tevent_add_timer(irpc->ev, irpc, timeval_zero(), deferred_echodata, irpc);
return NT_STATUS_OK;
}
@@ -218,14 +218,14 @@ static bool test_speed(struct torture_context *tctx,
ping_count++;
while (ping_count > pong_count + 20) {
- event_loop_once(data->ev);
+ tevent_loop_once(data->ev);
}
}
torture_comment(tctx, "waiting for %d remaining replies (done %d)\n",
ping_count - pong_count, pong_count);
while (timeval_elapsed(&tv) < 30 && pong_count < ping_count) {
- event_loop_once(data->ev);
+ tevent_loop_once(data->ev);
}
torture_assert_int_equal(tctx, ping_count, pong_count, "ping test failed");
diff --git a/source4/lib/messaging/tests/messaging.c b/source4/lib/messaging/tests/messaging.c
index c5d37953d0..c17b95e9c4 100644
--- a/source4/lib/messaging/tests/messaging.c
+++ b/source4/lib/messaging/tests/messaging.c
@@ -110,14 +110,14 @@ static bool test_ping_speed(struct torture_context *tctx)
ping_count++;
while (ping_count > pong_count + 20) {
- event_loop_once(ev);
+ tevent_loop_once(ev);
}
}
torture_comment(tctx, "waiting for %d remaining replies (done %d)\n",
ping_count - pong_count, pong_count);
while (timeval_elapsed(&tv) < 30 && pong_count < ping_count) {
- event_loop_once(ev);
+ tevent_loop_once(ev);
}
torture_comment(tctx, "sending exit\n");