diff options
author | Tao Klerks <tao@klerks.biz> | 2022-03-02 06:05:24 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-01 22:55:10 -0800 |
commit | 9ba83ebfda1137ad7a4d677e6bef57e345288804 (patch) | |
tree | 3f0083d4df29af59ee1a639e3b35bf0c5d834a5c /Documentation/git-verify-commit.txt | |
parent | t/helper/test-chmtime: update mingw to support chmtime on directories (diff) | |
download | tgif-9ba83ebfda1137ad7a4d677e6bef57e345288804.tar.xz |
t7063: mtime-mangling instead of delays in untracked cache testing
The untracked cache test uses an avoid_racy function to deal with
an mtime-resolution challenge in testing: If an untracked cache
entry's mtime falls in the same second as the mtime of the index
the untracked cache was stored in, then it cannot be trusted.
Explicitly delaying tests is a simple effective strategy to
avoid these issues, but should be avoided where possible.
Switch from a delay-based strategy to instead backdating
all file changes using test-tool chmtime, where that is an
option, to shave 9 seconds off the test run time.
Don't update test cases that delay for other reasons, for now at
least (4 seconds).
Signed-off-by: Tao Klerks <tao@klerks.biz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-verify-commit.txt')
0 files changed, 0 insertions, 0 deletions