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

tridge at samba.org tridge at samba.org
Thu Feb 10 07:57:10 GMT 2005


Author: tridge
Date: 2005-02-10 07:57:09 +0000 (Thu, 10 Feb 2005)
New Revision: 5310

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

Log:
allow for rounding errors in the sleep test

Modified:
   branches/SAMBA_4_0/source/torture/rpc/echo.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/echo.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/echo.c	2005-02-10 07:43:39 UTC (rev 5309)
+++ branches/SAMBA_4_0/source/torture/rpc/echo.c	2005-02-10 07:57:09 UTC (rev 5310)
@@ -263,7 +263,7 @@
 					       	r[i].out.result, r[i].in.seconds, (uint_t)diff[i].tv_sec);
 					ret = False;
 				} else {
-					if (r[i].out.result > diff[i].tv_sec) {
+					if (r[i].out.result > diff[i].tv_sec+1) {
 						printf("Failed - Sleeped for %u seconds (but reply takes only %u seconds)\n", 
 					       		r[i].out.result, (uint_t)diff[i].tv_sec);
 						ret = False;



More information about the samba-cvs mailing list