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>
Michael Haggerty committed
Aug 4, 2011 at 06:47 UTC
fa92f3233c65251c3311f0834526ce96a1963554
1 file changed
+3
-2
t/t0003-attributes.sh
+3
-2
@@ -9,9 +9,10 @@ attr_check () {
9
path="$1"
10
expect="$2"
11
12
- git check-attr test -- "$path" >actual &&
12
+ git check-attr test -- "$path" >actual 2>err &&
13
echo "$path: test: $2" >expect &&
14
- test_cmp expect actual
14
+ test_cmp expect actual &&
15
+ test_line_count = 0 err
16
17
}
18