author | Michael J Gruber <git@drmicha.warpmail.net> | |
Thu, 14 Apr 2011 17:38:13 +0000 (19:38 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 14 Apr 2011 17:47:18 +0000 (10:47 -0700) | ||
commit | e3b02bc9533007f9e7aa9d7738a0f92c952dcff6 | |
tree | baf748939e503e428a7cfc7ea7cd12c4d3e7046e | tree | snapshot |
parent | fd5858b49bd0672d96026a9cff690c2b8730cb0c | commit | diff |
t3306,t5304: avoid clock skew issues
On systems where the local time and file modification time may be out of
sync (e.g. test directory on NFS) t3306 and t5305 can fail because prune
compares times such as "now" (client time) with file modification times
(server times for remote file systems). I.e., these are spurious test
failures.
Avoid this by setting the relevant modification times to the local time.
Noticed on a system with as little as 2s time skew.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
On systems where the local time and file modification time may be out of
sync (e.g. test directory on NFS) t3306 and t5305 can fail because prune
compares times such as "now" (client time) with file modification times
(server times for remote file systems). I.e., these are spurious test
failures.
Avoid this by setting the relevant modification times to the local time.
Noticed on a system with as little as 2s time skew.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3306-notes-prune.sh | diff | blob | history | |
t/t5304-prune.sh | diff | blob | history |