tests: ensure fsck fails on corrupt packfiles
commita7c28a21617130ebaa709957bd038dab8ee9abdf
authorJonathan Tan <jonathantanmy@google.com>
Fri, 28 Jul 2017 20:08:02 +0000 (28 13:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Jul 2017 22:26:48 +0000 (28 15:26 -0700)
tree2bd31e61ee3c747085ae5d9a33c78772a79de581
parent5800c63717ae35286a1441f14ffff753e01f7e2b
tests: ensure fsck fails on corrupt packfiles

t1450-fsck.sh does not have a test that checks fsck's behavior when a
packfile is invalid. It does have a test for when an object in a
packfile is invalid, but in that test, the packfile itself is valid.

Add such a test.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1450-fsck.sh