From 920c1ca95c499194430a18a9f2186670c6861cc4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 17 Jun 2006 00:17:50 +0000 Subject: r16328: Wrap all existing tests in simple single-function testsuites. (This used to be commit 7e811adf59841936b7e634fca4e95630f890c5af) --- source4/torture/local/messaging.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source4/torture/local/messaging.c') diff --git a/source4/torture/local/messaging.c b/source4/torture/local/messaging.c index 38d3056f6e..8161c3ea4f 100644 --- a/source4/torture/local/messaging.c +++ b/source4/torture/local/messaging.c @@ -24,7 +24,6 @@ #include "lib/events/events.h" #include "lib/messaging/irpc.h" #include "torture/torture.h" -#include "torture/ui.h" static uint32_t msg_pong; @@ -145,9 +144,9 @@ static BOOL test_ping_speed(struct torture_context *torture, const void *_data) return True; } -BOOL torture_local_messaging(struct torture_context *torture) +struct torture_suite *torture_local_messaging(TALLOC_CTX *mem_ctx) { - struct torture_suite *s = torture_suite_create(torture, "LOCAL-MESSAGING"); + struct torture_suite *s = torture_suite_create(mem_ctx, "LOCAL-MESSAGING"); torture_suite_add_simple_tcase(s, "ping_speed", test_ping_speed, NULL); - return torture_run_suite(torture, s); + return s; } -- cgit