summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-10 07:57:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:40 -0500
commit341395db51fb69c8bb0817ff3b59b6166c02966f (patch)
tree6406449578bea5ae84164afa3a248ca5b99ef457
parenta0e6f6c05b438765c8bbb6f8e7f7e6478dc67293 (diff)
downloadsamba-341395db51fb69c8bb0817ff3b59b6166c02966f.tar.gz
samba-341395db51fb69c8bb0817ff3b59b6166c02966f.tar.bz2
samba-341395db51fb69c8bb0817ff3b59b6166c02966f.zip
r5310: allow for rounding errors in the sleep test
(This used to be commit bd2c55a5193b29b28c4fbde643c302f0d81c95a6)
-rw-r--r--source4/torture/rpc/echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c
index dd30df7c0b..9a2e656bfe 100644
--- a/source4/torture/rpc/echo.c
+++ b/source4/torture/rpc/echo.c
@@ -263,7 +263,7 @@ static BOOL test_sleep(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
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;