Skip to content

Commit fa92f32

Browse files
mhaggergitster
authored andcommitted
git-check-attr: test that no output is written to stderr
Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d932f4e commit fa92f32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/t0003-attributes.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ attr_check () {
99
path="$1"
1010
expect="$2"
1111

12-
git check-attr test -- "$path" >actual &&
12+
git check-attr test -- "$path" >actual 2>err &&
1313
echo "$path: test: $2" >expect &&
14-
test_cmp expect actual
14+
test_cmp expect actual &&
15+
test_line_count = 0 err
1516

1617
}
1718

0 commit comments

Comments
 (0)