diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2011-08-04 06:47:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-04 15:57:17 -0700 |
commit | fa92f3233c65251c3311f0834526ce96a1963554 (patch) | |
tree | e3303af72a91379ded2dbac5f763c740c06d0035 | |
parent | Rename git_checkattr() to git_check_attr() (diff) | |
download | tgif-fa92f3233c65251c3311f0834526ce96a1963554.tar.xz |
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>
-rwxr-xr-x | t/t0003-attributes.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index 5acb2d5bbd..4f2fbc0781 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 } |