From d22397e4e8852196b72cbd41ee3b3e48b9f7f411 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 10 Sep 2014 01:03:57 +0200 Subject: [PATCH 2/2] s4:torture:base: slightly more generous timing in the defer_open test 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 --- source4/torture/basic/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/basic/base.c b/source4/torture/basic/base.c index bd9a304..6a792b2 100644 --- a/source4/torture/basic/base.c +++ b/source4/torture/basic/base.c @@ -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); -- 1.9.1