From: Michael Haggerty Date: Thu, 4 Aug 2011 04:47:43 +0000 (+0200) Subject: git-check-attr: test that no output is written to stderr X-Git-Tag: v1.7.7-rc0~23^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fa92f3233c65251c3311f0834526ce96a1963554?hp=--cc git-check-attr: test that no output is written to stderr Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- fa92f3233c65251c3311f0834526ce96a1963554 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 }