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

tridge at samba.org tridge at samba.org
Thu Jul 28 04:06:54 GMT 2005


Author: tridge
Date: 2005-07-28 04:06:54 +0000 (Thu, 28 Jul 2005)
New Revision: 8817

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

Log:
- fixed return result from LOCAL-MESSAGING test

- added timelimit support

Modified:
   branches/SAMBA_4_0/source/torture/local/messaging.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/local/messaging.c
===================================================================
--- branches/SAMBA_4_0/source/torture/local/messaging.c	2005-07-28 03:11:43 UTC (rev 8816)
+++ branches/SAMBA_4_0/source/torture/local/messaging.c	2005-07-28 04:06:54 UTC (rev 8817)
@@ -63,6 +63,7 @@
 	int pong_count = 0;
 	BOOL ret = True;
 	struct timeval tv;
+	int timelimit = lp_parm_int(-1, "torture", "timelimit", 10);
 
 	lp_set_cmdline("lock dir", "lockdir.tmp");
 
@@ -88,8 +89,8 @@
 
 	tv = timeval_current();
 
-	printf("Sending pings for 10 seconds\n");
-	while (timeval_elapsed(&tv) < 10.0) {
+	printf("Sending pings for %d seconds\n", timelimit);
+	while (timeval_elapsed(&tv) < timelimit) {
 		DATA_BLOB data;
 		NTSTATUS status1, status2;
 
@@ -150,5 +151,5 @@
 
 	talloc_free(mem_ctx);
 
-	return True;
+	return ret;
 }



More information about the samba-cvs mailing list