test: use test_i18ncmp when checking --stat output
Ever since v1.7.9.2~13 (2012-02-01), git's diffstat-style summary line produced by "git apply --stat", "git diff --stat", and "git commit" varies by locale, producing test failures when GETTEXT_POISON is set. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
fa678feb7c
commit
fc5877a623
@@ -25,11 +25,11 @@ cat > expected <<\EOF
|
||||
EOF
|
||||
test_expect_success 'diff without --binary' \
|
||||
'git diff | git apply --stat --summary >current &&
|
||||
test_cmp expected current'
|
||||
test_i18ncmp expected current'
|
||||
|
||||
test_expect_success 'diff with --binary' \
|
||||
'git diff --binary | git apply --stat --summary >current &&
|
||||
test_cmp expected current'
|
||||
test_i18ncmp expected current'
|
||||
|
||||
# apply needs to be able to skip the binary material correctly
|
||||
# in order to report the line number of a corrupt patch.
|
||||
|
||||
Reference in New Issue
Block a user