diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-08-18 14:41:28 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-18 16:47:46 (GMT) |
commit | 4592e6080ff0f9eb0218162be0e40b2d6abc979a (patch) | |
tree | 4b9ec1726800a8990ec49caa31c03f7536f9fca8 /t/test-lib.sh | |
parent | 5697ca9aa562c1f0b624b4f273685351734162e3 (diff) | |
download | git-4592e6080ff0f9eb0218162be0e40b2d6abc979a.zip git-4592e6080ff0f9eb0218162be0e40b2d6abc979a.tar.gz git-4592e6080ff0f9eb0218162be0e40b2d6abc979a.tar.bz2 |
cache-tree: verify valid cache-tree in the test suite
This makes sure that cache-tree is consistent with the index. The main
purpose is to catch potential problems by saving the index in
unpack_trees() but the line in write_index() would also help spot
missing invalidation in other code.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 78f7097..5b50f6e 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1083,6 +1083,12 @@ else test_set_prereq C_LOCALE_OUTPUT fi +if test -z "$GIT_TEST_CHECK_CACHE_TREE" +then + GIT_TEST_CHECK_CACHE_TREE=true + export GIT_TEST_CHECK_CACHE_TREE +fi + test_lazy_prereq PIPE ' # test whether the filesystem supports FIFOs test_have_prereq !MINGW,!CYGWIN && |