diff options
author | Jeremy Allison <jra@samba.org> | 2009-08-24 18:21:23 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-08-24 18:21:23 -0700 |
commit | 9a86f26a5f0b421f8cf259e579fe5946b39623f6 (patch) | |
tree | cc01ad67abb8f2d3c025ca7f0aa0bfec52af1f61 /source4 | |
parent | 7a6c979299ce5e0bea45ba7f2fe92443ac5a0735 (diff) | |
download | samba-9a86f26a5f0b421f8cf259e579fe5946b39623f6.tar.gz samba-9a86f26a5f0b421f8cf259e579fe5946b39623f6.tar.bz2 samba-9a86f26a5f0b421f8cf259e579fe5946b39623f6.zip |
Allow systems with timestamp granularity of 1sec to work with
this test.
Jeremy.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/basic/delaywrite.c | 15 |
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); |