t5613: use test_must_fail
Besides being our normal style, this correctly checks for an error exit() versus signal death. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
b28a88f26a
commit
195eb46546
@ -46,10 +46,9 @@ git clone -l -s F G &&
|
|||||||
git clone --bare -l -s G H'
|
git clone --bare -l -s G H'
|
||||||
|
|
||||||
test_expect_success 'invalidity of deepest repository' \
|
test_expect_success 'invalidity of deepest repository' \
|
||||||
'cd H && {
|
'cd H &&
|
||||||
git fsck
|
test_must_fail git fsck
|
||||||
test $? -ne 0
|
'
|
||||||
}'
|
|
||||||
|
|
||||||
cd "$base_dir"
|
cd "$base_dir"
|
||||||
|
|
||||||
@ -75,7 +74,8 @@ cd "$base_dir"
|
|||||||
test_expect_success 'that info/alternates is necessary' \
|
test_expect_success 'that info/alternates is necessary' \
|
||||||
'cd C &&
|
'cd C &&
|
||||||
rm -f .git/objects/info/alternates &&
|
rm -f .git/objects/info/alternates &&
|
||||||
! (git fsck)'
|
test_must_fail git fsck
|
||||||
|
'
|
||||||
|
|
||||||
cd "$base_dir"
|
cd "$base_dir"
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ cd "$base_dir"
|
|||||||
test_expect_success \
|
test_expect_success \
|
||||||
'that relative alternate is only possible for current dir' '
|
'that relative alternate is only possible for current dir' '
|
||||||
cd D &&
|
cd D &&
|
||||||
! (git fsck)
|
test_must_fail git fsck
|
||||||
'
|
'
|
||||||
|
|
||||||
cd "$base_dir"
|
cd "$base_dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user