s4:torture:base: slightly more generous timing in the defer_open test
authorMichael Adam <obnox@samba.org>
Tue, 9 Sep 2014 23:03:57 +0000 (01:03 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 10 Sep 2014 19:51:42 +0000 (21:51 +0200)
This copes with cases where the server is very busy and
can't provide tortures more tight time scaling..
This is an attepmt to remove the flapping character of this test.

Signed-off-by: Michael Adam <obnox@samba.org>
Revieed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 10 21:51:42 CEST 2014 on sn-devel-104

source4/torture/basic/base.c

index bd9a304f94317449f503e8b7f7fd8158c210fba8..6a792b2781f8499e2f5d326dc7b57c43dea5787c 100644 (file)
@@ -697,7 +697,7 @@ static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli
                                torture_comment(tctx, "pid %u: create[%d,%d] "
                                                "time elapsed: %.2f (1 sec = %.2f)\n",
                                                (unsigned)getpid(), i, j, e, sec);
-                               if (e < (0.5 * sec) || e > ((1.5 * sec) + 1)) {
+                               if (e < (0.5 * sec) || e > ((1.5 * sec) + 1.5)) {
                                        torture_comment(tctx, "pid %u: create[%d,%d] "
                                                        "timing incorrect\n",
                                                        (unsigned)getpid(), i, j);