diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-10-05 20:33:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:47 -0500 |
commit | ae74eea43d454bd03bebdaaeb25d3034369afc9d (patch) | |
tree | c0d1848b58b21483b6866be20630d0ed73f87eb0 /source4/torture | |
parent | 8c2ef262a83041fc194b32e412afb18647733ce0 (diff) | |
download | samba-ae74eea43d454bd03bebdaaeb25d3034369afc9d.tar.gz samba-ae74eea43d454bd03bebdaaeb25d3034369afc9d.tar.bz2 samba-ae74eea43d454bd03bebdaaeb25d3034369afc9d.zip |
r25527: Deal with no tests being registered.
(This used to be commit 2d36f6d3dbdad097933078bc9c689ff66d9a8a47)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/smbtorture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index a14b909598..76ff3d97fa 100644 --- a/source4/torture/smbtorture.c +++ b/source4/torture/smbtorture.c @@ -169,6 +169,9 @@ static void print_test_list(void) struct torture_suite *s; struct torture_tcase *t; + if (torture_root == NULL) + return; + for (o = torture_root->children; o; o = o->next) { for (s = o->children; s; s = s->next) { printf("%s-%s\n", o->name, s->name); |