From b58deeea692fc28827e249f0fc4a9d39263a4095 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 16 Oct 2006 23:09:15 +0000 Subject: r19350: Properly list LOCAL-TALLOC under the "LOCAL" header. Support directories for subcategories in tests. Several small other fixes. (This used to be commit bde00d97068d559b025ab131ff698a82430d14b3) --- source4/torture/ui.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'source4/torture/ui.c') diff --git a/source4/torture/ui.c b/source4/torture/ui.c index 32b632a3e8..d8bff6cca3 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -394,9 +394,14 @@ bool torture_suite_add_suite(struct torture_suite *suite, } -struct torture_suite *torture_find_suite(const char *name) +struct torture_suite *torture_find_suite(struct torture_suite *parent, + const char *name) { - /* FIXME */ + struct torture_suite *child; + + for (child = parent->children; child; child = child->next) + if (!strcmp(child->name, name)) + return child; return NULL; } -- cgit