diff options
author | Jeff King <peff@peff.net> | 2015-03-20 06:11:46 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-20 10:20:16 -0700 |
commit | c21fc9d0ab217d6e3cf01ee895e827b72d8207b6 (patch) | |
tree | 46e5f6bca004507e9f1f1f47c438afa2fad61b5f /t/t4053-diff-no-index.sh | |
parent | 35da1bf5d6d51fe62d4d646c306c5cf5182a881e (diff) | |
download | git-c21fc9d0ab217d6e3cf01ee895e827b72d8207b6.tar.gz |
t: use test_expect_code instead of hand-rolled comparison
This makes our output in the event of a failure slightly
nicer, and it means that we do not break the &&-chain.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4053-diff-no-index.sh')
-rwxr-xr-x | t/t4053-diff-no-index.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t4053-diff-no-index.sh b/t/t4053-diff-no-index.sh index 2ab3c48734..075ece6db1 100755 --- a/t/t4053-diff-no-index.sh +++ b/t/t4053-diff-no-index.sh @@ -17,8 +17,8 @@ test_expect_success 'setup' ' ' test_expect_success 'git diff --no-index directories' ' - git diff --no-index a b >cnt - test $? = 1 && test_line_count = 14 cnt + test_expect_code 1 git diff --no-index a b >cnt && + test_line_count = 14 cnt ' test_expect_success 'git diff --no-index relative path outside repo' ' |