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/event.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source4/torture/local/event.c') diff --git a/source4/torture/local/event.c b/source4/torture/local/event.c index d886519220..f55cd8d466 100644 --- a/source4/torture/local/event.c +++ b/source4/torture/local/event.c @@ -24,7 +24,6 @@ #include "lib/events/events.h" #include "system/filesys.h" #include "torture/torture.h" -#include "torture/ui.h" const struct event_ops *event_standard_get_ops(void); const struct event_ops *event_liboop_get_ops(void); @@ -113,10 +112,9 @@ static BOOL test_event_context(struct torture_context *torture, const void *_dat return True; } -BOOL torture_local_event(struct torture_context *torture) +struct torture_suite *torture_local_event(TALLOC_CTX *mem_ctx) { - BOOL retv = True; - struct torture_suite *suite = torture_suite_create(torture, "LOCAL-EVENT"); + struct torture_suite *suite = torture_suite_create(mem_ctx, "LOCAL-EVENT"); torture_suite_add_simple_tcase(suite, "standard with select", test_event_context, @@ -126,5 +124,5 @@ BOOL torture_local_event(struct torture_context *torture) test_event_context, (void *)True); - return retv; + return suite; } -- cgit