diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-10-16 23:09:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:14 -0500 |
commit | b58deeea692fc28827e249f0fc4a9d39263a4095 (patch) | |
tree | b4e7ddc76fd026977803d4d067dc307e7e9d48e7 /source4/torture/ui.c | |
parent | c2d6fad69bc42c0d7c261282797ca8baf9e9aad2 (diff) | |
download | samba-b58deeea692fc28827e249f0fc4a9d39263a4095.tar.gz samba-b58deeea692fc28827e249f0fc4a9d39263a4095.tar.bz2 samba-b58deeea692fc28827e249f0fc4a9d39263a4095.zip |
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)
Diffstat (limited to 'source4/torture/ui.c')
-rw-r--r-- | source4/torture/ui.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; } |