Author: jelmer Date: 2007-10-05 20:33:55 +0000 (Fri, 05 Oct 2007) New Revision: 25527
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25527 Log: Deal with no tests being registered. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/torture/smbtorture.c Changeset: Property changes on: branches/SAMBA_4_0 ___________________________________________________________________ Name: bzr:revision-info ...skipped... Name: bzr:revision-id:v3-trunk0 ...skipped... Modified: branches/SAMBA_4_0/source/torture/smbtorture.c =================================================================== --- branches/SAMBA_4_0/source/torture/smbtorture.c 2007-10-05 20:08:48 UTC (rev 25526) +++ branches/SAMBA_4_0/source/torture/smbtorture.c 2007-10-05 20:33:55 UTC (rev 25527) @@ -169,6 +169,9 @@ 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);