diff options
author | Nicolas Pitre <nico@cam.org> | 2008-09-02 10:22:22 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-02 17:05:56 -0700 |
commit | 5f020f720298ddba537f857a240ffa7debb05f54 (patch) | |
tree | fd70468d47102f2201e11750d20db424b52c827d /t | |
parent | pack-objects: don't include missing preferred base objects (diff) | |
download | tgif-5f020f720298ddba537f857a240ffa7debb05f54.tar.xz |
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t5300-pack-object.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index 83abe5f25e..8a8b0f1aba 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -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' \ |