summaryrefslogtreecommitdiff
path: root/t/t0003-attributes.sh
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2011-08-04 04:47:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-08-04 22:57:17 (GMT)
commitfa92f3233c65251c3311f0834526ce96a1963554 (patch)
treee3303af72a91379ded2dbac5f763c740c06d0035 /t/t0003-attributes.sh
parentd932f4eb9fc88e93040635d291f6c195ea2e4ee3 (diff)
downloadgit-fa92f3233c65251c3311f0834526ce96a1963554.zip
git-fa92f3233c65251c3311f0834526ce96a1963554.tar.gz
git-fa92f3233c65251c3311f0834526ce96a1963554.tar.bz2
git-check-attr: test that no output is written to stderr
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0003-attributes.sh')
-rwxr-xr-xt/t0003-attributes.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh
index 5acb2d5..4f2fbc0 100755
--- a/t/t0003-attributes.sh
+++ b/t/t0003-attributes.sh
@@ -9,9 +9,10 @@ attr_check () {
path="$1"
expect="$2"
- git check-attr test -- "$path" >actual &&
+ git check-attr test -- "$path" >actual 2>err &&
echo "$path: test: $2" >expect &&
- test_cmp expect actual
+ test_cmp expect actual &&
+ test_line_count = 0 err
}