summaryrefslogtreecommitdiff
path: root/source4/torture/local/event.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-06-17 00:17:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:10 -0500
commit920c1ca95c499194430a18a9f2186670c6861cc4 (patch)
tree4fc108e421b6448ed756c5b7dd8b5db9f6d88c27 /source4/torture/local/event.c
parent5b7ee5e7d69f73618d7cc7a4229b98c429506084 (diff)
downloadsamba-920c1ca95c499194430a18a9f2186670c6861cc4.tar.gz
samba-920c1ca95c499194430a18a9f2186670c6861cc4.tar.bz2
samba-920c1ca95c499194430a18a9f2186670c6861cc4.zip
r16328: Wrap all existing tests in simple single-function testsuites.
(This used to be commit 7e811adf59841936b7e634fca4e95630f890c5af)
Diffstat (limited to 'source4/torture/local/event.c')
-rw-r--r--source4/torture/local/event.c8
1 files changed, 3 insertions, 5 deletions
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;
}