summaryrefslogtreecommitdiff
path: root/source4/torture/local/resolve.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/resolve.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/resolve.c')
-rw-r--r--source4/torture/local/resolve.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/torture/local/resolve.c b/source4/torture/local/resolve.c
index da83b45341..a9878e88ee 100644
--- a/source4/torture/local/resolve.c
+++ b/source4/torture/local/resolve.c
@@ -24,7 +24,6 @@
#include "lib/events/events.h"
#include "libcli/resolve/resolve.h"
#include "torture/torture.h"
-#include "torture/ui.h"
static BOOL test_async_resolve(struct torture_context *test, const void *_data)
{
@@ -81,13 +80,13 @@ static BOOL test_sync_resolve(struct torture_context *test, const void *_data)
}
-BOOL torture_local_resolve(struct torture_context *torture)
+struct torture_suite *torture_local_resolve(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(torture,
+ struct torture_suite *suite = torture_suite_create(mem_ctx,
"LOCAL-RESOLVE");
torture_suite_add_simple_tcase(suite, "async", test_async_resolve, NULL);
torture_suite_add_simple_tcase(suite, "sync", test_sync_resolve, NULL);
- return torture_run_suite(torture, suite);
+ return suite;
}