From 341395db51fb69c8bb0817ff3b59b6166c02966f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Feb 2005 07:57:09 +0000 Subject: r5310: allow for rounding errors in the sleep test (This used to be commit bd2c55a5193b29b28c4fbde643c302f0d81c95a6) --- source4/torture/rpc/echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture') 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; -- cgit