i18n: use test_i18ncmp in t7500
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Apr 12, 2011 at 16:48 UTC
29853c82424d291f93cf8e45ee2815b85f8a4df3
1 file changed
+5
-5
t/t7500-commit.sh
+5
-5
@@ -15,7 +15,7 @@ commit_msg_is () {
15
16
printf "%s" "$(git log --pretty=format:%s%b -1)" >$expect &&
17
printf "%s" "$1" >$actual &&
18
- test_cmp $expect $actual
18
+ test_i18ncmp $expect $actual
19
}
20
21
# A sanity check to see if commit is working at all.
@@ -72,7 +72,7 @@ test_expect_success 'adding comments to a template should not commit' '
72
)
73
'
74
75
-test_expect_success C_LOCALE_OUTPUT 'adding real content to a template should commit' '
75
+test_expect_success 'adding real content to a template should commit' '
76
(
77
test_set_editor "$TEST_DIRECTORY"/t7500/add-content &&
78
git commit --template "$TEMPLATE"
@@ -80,7 +80,7 @@ test_expect_success C_LOCALE_OUTPUT 'adding real content to a template should co
80
commit_msg_is "template linecommit message"
81
'
82
83
-test_expect_success C_LOCALE_OUTPUT '-t option should be short for --template' '
83
+test_expect_success '-t option should be short for --template' '
84
echo "short template" > "$TEMPLATE" &&
85
echo "new content" >> foo &&
86
git add foo &&
@@ -91,7 +91,7 @@ test_expect_success C_LOCALE_OUTPUT '-t option should be short for --template' '
91
commit_msg_is "short templatecommit message"
92
'
93
94
-test_expect_success C_LOCALE_OUTPUT 'config-specified template should commit' '
94
+test_expect_success 'config-specified template should commit' '
95
echo "new template" > "$TEMPLATE" &&
96
git config commit.template "$TEMPLATE" &&
97
echo "more content" >> foo &&
@@ -290,7 +290,7 @@ test_expect_success 'commit --squash works with -c for same commit' '
290
commit_msg_is "squash! edited commit"
291
'
292
293
-test_expect_success C_LOCALE_OUTPUT 'commit --squash works with editor' '
293
+test_expect_success 'commit --squash works with editor' '
294
commit_for_rebase_autosquash_setup &&
295
test_set_editor "$TEST_DIRECTORY"/t7500/add-content &&
296
git commit --squash HEAD~1 &&