Browse Source

t5300: improve SHA1 collision test

Make sure the reason for the command failure is actually due to
the detection of SHA1 collision.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Nicolas Pitre 16 years ago committed by Junio C Hamano
parent
commit
5f020f7202
  1. 3
      t/t5300-pack-object.sh

3
t/t5300-pack-object.sh

@ -272,7 +272,8 @@ test_expect_success \ @@ -272,7 +272,8 @@ test_expect_success \

test_expect_success \
'make sure index-pack detects the SHA1 collision' \
'test_must_fail git-index-pack -o bad.idx test-3.pack'
'test_must_fail git-index-pack -o bad.idx test-3.pack 2>msg &&
grep "SHA1 COLLISION FOUND" msg'

test_expect_success \
'honor pack.packSizeLimit' \

Loading…
Cancel
Save