Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-10-03 23:34:01 +0300
committerJunio C Hamano <gitster@pobox.com>2016-10-04 00:25:43 +0300
commit195eb4654631bf6747649e22b0776c988669d829 (patch)
tree5dfdde2adce481f8e2f16497619982eb92dbb5cd /t/t5613-info-alternate.sh
parentb28a88f26a21e6134a099e2d57aa088bc6d93818 (diff)
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>
Diffstat (limited to 't/t5613-info-alternate.sh')
-rwxr-xr-xt/t5613-info-alternate.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/t5613-info-alternate.sh b/t/t5613-info-alternate.sh
index 4548fb0ab9..65074ddc13 100755
--- a/t/t5613-info-alternate.sh
+++ b/t/t5613-info-alternate.sh
@@ -46,10 +46,9 @@ git clone -l -s F G &&
git clone --bare -l -s G H'
test_expect_success 'invalidity of deepest repository' \
-'cd H && {
- git fsck
- test $? -ne 0
-}'
+'cd H &&
+test_must_fail git fsck
+'
cd "$base_dir"
@@ -75,7 +74,8 @@ cd "$base_dir"
test_expect_success 'that info/alternates is necessary' \
'cd C &&
rm -f .git/objects/info/alternates &&
-! (git fsck)'
+test_must_fail git fsck
+'
cd "$base_dir"
@@ -89,7 +89,7 @@ cd "$base_dir"
test_expect_success \
'that relative alternate is only possible for current dir' '
cd D &&
- ! (git fsck)
+ test_must_fail git fsck
'
cd "$base_dir"