Skip to content

Commit b3e1900

Browse files
committed
i18n: use test_i18ncmp and test_i18ngrep in t5541, t6040, t6120, t7004, t7012 and t7060
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 68b2a00 commit b3e1900

File tree

6 files changed

+15
-17
lines changed

6 files changed

+15
-17
lines changed

t/t5541-http-push.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ test_expect_success 'push fails for non-fast-forward refs unmatched by remote he
135135
grep "^ ! \[rejected\] *master -> retsam (non-fast-forward)$" output
136136
'
137137

138-
test_expect_success C_LOCALE_OUTPUT 'push fails for non-fast-forward refs unmatched by remote helper: our output' '
139-
grep "To prevent you from losing history, non-fast-forward updates were rejected" \
138+
test_expect_success 'push fails for non-fast-forward refs unmatched by remote helper: our output' '
139+
test_i18ngrep "To prevent you from losing history, non-fast-forward updates were rejected" \
140140
output
141141
'
142142

t/t6040-tracking-info.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ b3 behind 1
4242
b4 ahead 2
4343
EOF
4444

45-
test_expect_success C_LOCALE_OUTPUT 'branch -v' '
45+
test_expect_success 'branch -v' '
4646
(
4747
cd test &&
4848
git branch -v
4949
) |
5050
sed -n -e "$script" >actual &&
51-
test_cmp expect actual
51+
test_i18ncmp expect actual
5252
'
5353

5454
test_expect_success 'checkout' '

t/t6120-describe.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ cat - >err.expect <<EOF
123123
warning: tag 'A' is really 'Q' here
124124
EOF
125125
check_describe A-* HEAD
126-
test_expect_success C_LOCALE_OUTPUT 'warning was displayed for Q' '
127-
test_cmp err.expect err.actual
126+
test_expect_success 'warning was displayed for Q' '
127+
test_i18ncmp err.expect err.actual
128128
'
129129
test_expect_success 'rename tag Q back to A' '
130130
mv .git/refs/tags/Q .git/refs/tags/A

t/t7004-tag.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,13 +1120,11 @@ test_expect_success \
11201120
! (GIT_EDITOR=cat git tag -a initial-comment > actual)
11211121
'
11221122

1123-
test_expect_success \
1124-
C_LOCALE_OUTPUT \
1125-
'message in editor has initial comment: first line' '
1123+
test_expect_success 'message in editor has initial comment: first line' '
11261124
# check the first line --- should be empty
11271125
echo >first.expect &&
11281126
sed -e 1q <actual >first.actual &&
1129-
test_cmp first.expect first.actual
1127+
test_i18ncmp first.expect first.actual
11301128
'
11311129

11321130
test_expect_success \

t/t7012-skip-worktree-writing.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,16 @@ cat >expected <<EOF
124124
Would remove expected
125125
Would remove result
126126
EOF
127-
test_expect_success C_LOCALE_OUTPUT 'git-clean, absent case' '
127+
test_expect_success 'git-clean, absent case' '
128128
setup_absent &&
129129
git clean -n > result &&
130-
test_cmp expected result
130+
test_i18ncmp expected result
131131
'
132132

133-
test_expect_success C_LOCALE_OUTPUT 'git-clean, dirty case' '
133+
test_expect_success 'git-clean, dirty case' '
134134
setup_dirty &&
135135
git clean -n > result &&
136-
test_cmp expected result
136+
test_i18ncmp expected result
137137
'
138138

139139
#TODO test_expect_failure 'git-apply adds file' false

t/t7060-wtstatus.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ cat >expect <<EOF
3838
no changes added to commit (use "git add" and/or "git commit -a")
3939
EOF
4040

41-
test_expect_success C_LOCALE_OUTPUT 'M/D conflict does not segfault' '
41+
test_expect_success 'M/D conflict does not segfault' '
4242
mkdir mdconflict &&
4343
(
4444
cd mdconflict &&
@@ -50,9 +50,9 @@ test_expect_success C_LOCALE_OUTPUT 'M/D conflict does not segfault' '
5050
git commit -m delete &&
5151
test_must_fail git merge master &&
5252
test_must_fail git commit --dry-run >../actual &&
53-
test_cmp ../expect ../actual &&
53+
test_i18ncmp ../expect ../actual &&
5454
git status >../actual &&
55-
test_cmp ../expect ../actual
55+
test_i18ncmp ../expect ../actual
5656
)
5757
'
5858

0 commit comments

Comments
 (0)