r25527: Deal with no tests being registered.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 5 Oct 2007 20:33:55 +0000 (20:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:07:47 +0000 (15:07 -0500)
source/torture/smbtorture.c

index a14b9095986228dd5c979c36e52b7189cefd2911..76ff3d97fadecd47b8597e29fdf528ca67932515 100644 (file)
@@ -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);