1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/torture/basic
Michael Adam 372d91b38b s4:torture:basic: eliminate potential for false failures in delayed_write_update1a
We want to test that the write did update the write time immediately.
We check this by getting the file info in a loop for a few seconds.
There are several result cases:

- the server updated the write time immediately - success
- the server updated the write time, but not immediately - failure
- the server did not update the write time - failure

The loop is only there to be able to discern between the two
failure cases. The check for success is whether the first
getinfo has reportet the updated write time.

The potential for false failures was the additional timing check.
So if the first fileinfo call just took too long (e.g. due to a
busy system), this was reported as failure.

This patch should eliminate interemittent autobuild failures.

Signed-off-by: Michael Adam <obnox@samba.org>

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-10-03 08:34:05 +02:00
..
aliases.c source4/torture/basic: Fix prototypes for all functions. 2011-03-19 03:20:04 +01:00
attr.c torture/attr: use security_ace_equal instead of sec_ace_equal 2014-05-29 01:08:25 +02:00
base.c s4:torture:base: slightly more generous timing in the defer_open test 2014-09-10 21:51:42 +02:00
charset.c lib/util/charset rename iconv_convenience to iconv_handle 2011-03-25 04:37:06 +01:00
cxd_known.h
delaywrite.c s4:torture:basic: eliminate potential for false failures in delayed_write_update1a 2014-10-03 08:34:05 +02:00
delete.c s4:torture:basic: add more delete test - variants of deltest16 and deltest17 2012-08-17 21:44:24 +02:00
denytest.c torture: Make sure we use the correct size for cxd. 2012-12-12 15:00:02 +01:00
dir.c source4/torture/basic: Fix prototypes for all functions. 2011-03-19 03:20:04 +01:00
disconnect.c s4-torture: Improve torture test boilerplate, use torture_assert() 2012-05-18 09:35:13 +02:00
locking.c s4-torture: Improve torture test boilerplate, use torture_assert() 2012-05-18 09:35:13 +02:00
mangle_test.c tdb_compat: use tdb_open_compat. 2011-06-20 11:18:35 +02:00
misc.c Fix the maxfids test so that it does not fork lots of processes and so that it works for all cases of maxfids. 2013-02-15 07:09:59 +01:00
properties.c source4/torture/basic: Fix prototypes for all functions. 2011-03-19 03:20:04 +01:00
rename.c source4/torture/basic: Fix prototypes for all functions. 2011-03-19 03:20:04 +01:00
scanner.c source4/torture/basic: Fix prototypes for all functions. 2011-03-19 03:20:04 +01:00
secleak.c source4/torture/basic: Fix prototypes for all functions. 2011-03-19 03:20:04 +01:00
unlink.c source4/torture/basic: Fix prototypes for all functions. 2011-03-19 03:20:04 +01:00
utable.c s4-test: prevent the utable test from crashing 2011-08-18 09:26:59 +10:00