svn commit: samba r14967 - in branches/SAMBA_4_0/source/torture: .

metze at samba.org metze at samba.org
Fri Apr 7 18:02:51 GMT 2006


Author: metze
Date: 2006-04-07 18:02:51 +0000 (Fri, 07 Apr 2006)
New Revision: 14967

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14967

Log:
load shared module torture test after we know where to search...

metze
Modified:
   branches/SAMBA_4_0/source/torture/smbtorture.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/smbtorture.c
===================================================================
--- branches/SAMBA_4_0/source/torture/smbtorture.c	2006-04-07 14:14:27 UTC (rev 14966)
+++ branches/SAMBA_4_0/source/torture/smbtorture.c	2006-04-07 18:02:51 UTC (rev 14967)
@@ -281,8 +281,6 @@
 	setbuffer(stdout, NULL, 0);
 #endif
 
-	torture_init();
-
 	/* we are never interested in SIGPIPE */
 	BlockSignals(True,SIGPIPE);
 
@@ -314,6 +312,7 @@
 		default:
 			d_printf("Invalid option %s: %s\n", 
 				 poptBadOption(pc, 0), poptStrerror(opt));
+			torture_init();
 			usage(pc);
 			exit(1);
 		}
@@ -329,6 +328,7 @@
 		alarm(max_runtime);
 	}
 
+	torture_init();
 	ldb_global_init();
 
 	if (torture_seed == 0) {



More information about the samba-cvs mailing list