summaryrefslogtreecommitdiff
path: root/diffcore-break.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-08-22 14:14:03 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-22 14:51:02 -0700
commitc277344182b6ff423b8395ea0bf7a75ee0db78e2 (patch)
tree23b7f74dd823d384e394e951776b7f5051f0f776 /diffcore-break.c
parentt4200: give us a clean slate after "rerere gc" tests (diff)
downloadtgif-c277344182b6ff423b8395ea0bf7a75ee0db78e2.tar.xz
t4200: make "rerere gc" test more robust
The test blindly trusted that there may be _some_ entries left in the rerere database, and used them by updating their timestamps to see if the gc threshold variables are honoured correctly. This won't work if there is no entry in the database when the test begins. Instead, clear the rerere database, and populate it with a few known entries (which are bogus, but for the purpose of testing "garbage collection", it does not matter---we want to make sure we collect old cruft, even if the files are corrupt rerere database entries), and use them for the expiry test. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-break.c')
0 files changed, 0 insertions, 0 deletions