From ae74eea43d454bd03bebdaaeb25d3034369afc9d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 5 Oct 2007 20:33:55 +0000 Subject: r25527: Deal with no tests being registered. (This used to be commit 2d36f6d3dbdad097933078bc9c689ff66d9a8a47) --- source4/torture/smbtorture.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/torture') 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); -- cgit