summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/basic/delaywrite.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/torture/basic/delaywrite.c b/source4/torture/basic/delaywrite.c
index 698638d03e..eb553ed0af 100644
--- a/source4/torture/basic/delaywrite.c
+++ b/source4/torture/basic/delaywrite.c
@@ -240,6 +240,9 @@ static bool test_delayed_write_update1(struct torture_context *tctx, struct smbc
ret = false;
}
+ fflush(stdout);
+ msleep(2 * msec);
+
/* Do a non-zero length SMBwrite and make sure it doesn't update the write time. */
written = smbcli_smbwrite(cli->tree, fnum1, "x", 0, 1);
@@ -421,6 +424,9 @@ static bool test_delayed_write_update1a(struct torture_context *tctx, struct smb
ret = false;
}
+ fflush(stdout);
+ msleep(2 * msec);
+
/* Do a non-zero length SMBwrite and make sure it doesn't update the write time. */
written = smbcli_smbwrite(cli->tree, fnum1, "x", 0, 1);
@@ -596,6 +602,9 @@ static bool test_delayed_write_update1b(struct torture_context *tctx, struct smb
ret = false;
}
+ fflush(stdout);
+ msleep(2 * msec);
+
/* Do a non-zero length SMBwrite and make sure it doesn't update the write time. */
written = smbcli_smbwrite(cli->tree, fnum1, "x", 0, 1);
@@ -773,6 +782,9 @@ static bool test_delayed_write_update1c(struct torture_context *tctx, struct smb
ret = false;
}
+ fflush(stdout);
+ msleep(2 * msec);
+
/* Do a non-zero length SMBwrite and make sure it doesn't update the write time. */
written = smbcli_smbwrite(cli->tree, fnum1, "x", 0, 1);
torture_assert_int_equal(tctx, written, 1,
@@ -999,6 +1011,9 @@ static bool test_delayed_write_update2(struct torture_context *tctx, struct smbc
torture_comment(tctx, "Server did not update write time (correct)\n");
}
+ fflush(stdout);
+ msleep(2 * msec);
+
fnum2 = smbcli_open(cli->tree, fname, O_RDWR, DENY_NONE);
if (fnum2 == -1) {
torture_comment(tctx, "Failed to open %s\n", fname);