summaryrefslogtreecommitdiffstats
path: root/lib/util/system.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-10-02 16:11:27 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-10-03 08:34:05 +0200
commit1d2d0bc78f080693a11ed2a9a90a4f67d22f6edf (patch)
treea0cd6fc86ec851e3170b738c8bddb6f4f193d791 /lib/util/system.c
parentbc93c8249b4ad93bebc590dede241d80f86f0291 (diff)
downloadsamba-1d2d0bc78f080693a11ed2a9a90a4f67d22f6edf.tar.gz
samba-1d2d0bc78f080693a11ed2a9a90a4f67d22f6edf.tar.xz
samba-1d2d0bc78f080693a11ed2a9a90a4f67d22f6edf.zip
s4:torture:basic: eliminate potential for false failures in delayed_write_update1
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>
Diffstat (limited to 'lib/util/system.c')
0 files changed, 0 insertions, 0 deletions