[PATCH 05/11] t0006: use `test_i18ncmp` only for C locales
- From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Jan 12, 2021, 08:47 UTC
- Message-ID
- <a6ea5a7327e5fe9079ac2f73816c5c1b6ad05253.1610441263.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.836.git.1610441262.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
We cannot really test anything else, as we do not control the output of `strftime()`.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- t/t0006-date.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t0006-date.sh b/t/t0006-date.sh index 75ee9a96b80..9f27e202d36 100755 --- a/t/t0006-date.sh +++ b/t/t0006-date.sh @@ -9,7 +9,7 @@ GIT_TEST_DATE_NOW=1251660000; export GIT_TEST_DATE_NOW check_relative() { t=$(($GIT_TEST_DATE_NOW - $1)) echo "$t -> $2" >expect - test_expect_${3:-success} "relative date ($2)" " + test_expect_${3:-success} C_LOCALE_OUTPUT "relative date ($2)" " test-tool date relative $t >actual && test_i18ncmp expect actual " @@ -137,7 +137,7 @@ check_approxidate '2009-12-01' '2009-12-01 19:20:00' check_date_format_human() { t=$(($GIT_TEST_DATE_NOW - $1)) echo "$t -> $2" >expect - test_expect_success "human date $t" ' + test_expect_success C_LOCALE_OUTPUT "human date $t" ' test-tool date human $t >actual && test_i18ncmp expect actual '
-- gitgitgadget