Skip to content

Commit

Permalink
git-check-attr: test that no output is written to stderr
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed Aug 4, 2011
1 parent d932f4e commit fa92f32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/t0003-attributes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

Expand Down

0 comments on commit fa92f32

Please sign in to comment.