Skip to content

Commit 68b2a00

Browse files
committed
i18n: use test_i18ncmp and test_i18ngrep in t3700, t4001 and t4014
Signed-off-by: Junio C Hamano <[email protected]>
1 parent fff1bb3 commit 68b2a00

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

t/t3700-add.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ test_expect_success 'git add --dry-run of non-existing file' "
271271
test_must_fail git add --dry-run track-this ignored-file >actual 2>&1
272272
"
273273

274-
test_expect_success C_LOCALE_OUTPUT 'git add --dry-run of an existing file output' "
274+
test_expect_success 'git add --dry-run of an existing file output' "
275275
echo \"fatal: pathspec 'ignored-file' did not match any files\" >expect &&
276-
test_cmp expect actual
276+
test_i18ncmp expect actual
277277
"
278278

279279
cat >expect.err <<\EOF
@@ -290,9 +290,9 @@ test_expect_success 'git add --dry-run --ignore-missing of non-existing file' '
290290
test_must_fail git add --dry-run --ignore-missing track-this ignored-file >actual.out 2>actual.err
291291
'
292292

293-
test_expect_success C_LOCALE_OUTPUT 'git add --dry-run --ignore-missing of non-existing file output' '
294-
test_cmp expect.out actual.out &&
295-
test_cmp expect.err actual.err
293+
test_expect_success 'git add --dry-run --ignore-missing of non-existing file output' '
294+
test_i18ncmp expect.out actual.out &&
295+
test_i18ncmp expect.err actual.err
296296
'
297297

298298
test_done

t/t4001-diff-rename.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ test_expect_success \
6464
'validate the output.' \
6565
'compare_diff_patch current expected'
6666

67-
test_expect_success C_LOCALE_OUTPUT 'favour same basenames over different ones' '
67+
test_expect_success 'favour same basenames over different ones' '
6868
cp path1 another-path &&
6969
git add another-path &&
7070
git commit -m 1 &&
7171
git rm path1 &&
7272
mkdir subdir &&
7373
git mv another-path subdir/path1 &&
74-
git status | grep "renamed: .*path1 -> subdir/path1"'
74+
git status | test_i18ngrep "renamed: .*path1 -> subdir/path1"'
7575

76-
test_expect_success C_LOCALE_OUTPUT 'favour same basenames even with minor differences' '
76+
test_expect_success 'favour same basenames even with minor differences' '
7777
git show HEAD:path1 | sed "s/15/16/" > subdir/path1 &&
78-
git status | grep "renamed: .*path1 -> subdir/path1"'
78+
git status | test_i18ngrep "renamed: .*path1 -> subdir/path1"'
7979

8080
test_done

t/t4014-format-patch.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -614,13 +614,13 @@ echo "fatal: --name-only does not make sense" > expect.name-only
614614
echo "fatal: --name-status does not make sense" > expect.name-status
615615
echo "fatal: --check does not make sense" > expect.check
616616

617-
test_expect_success C_LOCALE_OUTPUT 'options no longer allowed for format-patch' '
617+
test_expect_success 'options no longer allowed for format-patch' '
618618
test_must_fail git format-patch --name-only 2> output &&
619-
test_cmp expect.name-only output &&
619+
test_i18ncmp expect.name-only output &&
620620
test_must_fail git format-patch --name-status 2> output &&
621-
test_cmp expect.name-status output &&
621+
test_i18ncmp expect.name-status output &&
622622
test_must_fail git format-patch --check 2> output &&
623-
test_cmp expect.check output'
623+
test_i18ncmp expect.check output'
624624

625625
test_expect_success 'format-patch --numstat should produce a patch' '
626626
git format-patch --numstat --stdout master..side > output &&

0 commit comments

Comments
 (0)