r5310: allow for rounding errors in the sleep test
[ira/wip.git] / source / torture / rpc / echo.c
index dd30df7c0b53514cc3d865c89df5dc4ff2f55a82..9a2e656bfec5aa3512d619c1281923a9266abb83 100644 (file)
@@ -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;