git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] t/t7508-status.sh: use test_i18ncmp

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 5, 2011, 17:28 UTC
Message-ID
<1320514123-18842-3-git-send-email-avarab@gmail.com>
In-Reply-To
<1320514123-18842-1-git-send-email-avarab@gmail.com>

Change a i18n-specific comparison in t/t7508-status.sh to use test_i18ncmp instead. This was introduced in v1.7.6.3~11^2 and has been broken under GETTEXT_POISON=YesPlease since.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 t/t7508-status.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 905255a..fc57b13 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -189,7 +189,7 @@ test_expect_success 'status with gitignore' '
 	#	untracked
 	EOF
 	git status --ignored >output &&
-	test_cmp expect output
+	test_i18ncmp expect output
 '
 
 test_expect_success 'status with gitignore (nothing untracked)' '
@@ -247,7 +247,7 @@ test_expect_success 'status with gitignore (nothing untracked)' '
 	#	untracked
 	EOF
 	git status --ignored >output &&
-	test_cmp expect output
+	test_i18ncmp expect output
 '
 
 rm -f .gitignore
-- 
1.7.7
Previous: Ævar Arnfjörð Bjarmason
Message 3 of 3 in “i18n: fix GETTEXT_POISON=YesPlease breakages”
  1. 0/2 i18n: fix GETTEXT_POISON=YesPlease breakagesÆvar Arnfjörð Bjarmason, Nov 5, 2011
  2. 1/2 t/t6030-bisect-porcelain.sh: use test_i18ngrepÆvar Arnfjörð Bjarmason, Nov 5, 2011
  3. 2/2 t/t7508-status.sh: use test_i18ncmpÆvar Arnfjörð Bjarmason, Nov 5, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.