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

Re: [PATCH] t5510: skip tests under GETTEXT_POISON build

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 26, 2016, 16:53 UTC
Message-ID
<xmqq4m7c2ve8.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1469537934-16676-1-git-send-email-vascomalmeida@sapo.pt>
Vasco Almeida <vascomalmeida@sapo.pt> writes:
Show 33 quoted lines
> Skip tests when running under GETTEXT_POISON build and run them with
> C_LOCALE_OUTPUT prerequisite.
>
> These tests are irrelevant under GETTEXT_POISON because they test text
> output alignment which GETTEXT_POISON turns useless.
>
> Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
> ---
>  t/t5510-fetch.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
> index 6bd4853..668c54b 100755
> --- a/t/t5510-fetch.sh
> +++ b/t/t5510-fetch.sh
> @@ -688,7 +688,7 @@ test_expect_success 'fetching with auto-gc does not lock up' '
>  	)
>  '
>  
> -test_expect_success 'fetch aligned output' '
> +test_expect_success C_LOCALE_OUTPUT 'fetch aligned output' '
>  	git clone . full-output &&
>  	test_commit looooooooooooong-tag &&
>  	(
> @@ -703,7 +703,7 @@ test_expect_success 'fetch aligned output' '
>  	test_cmp expect actual
>  '
>  
> -test_expect_success 'fetch compact output' '
> +test_expect_success C_LOCALE_OUTPUT 'fetch compact output' '
>  	git clone . compact &&
>  	test_commit extraaa &&
>  	(
Makes sense, will queue.

This is a tangent, but it may make sense for us to start thinking about retiring one of the two prerequisites, GETTEXT_POISON and C_LOCALE_OUTPUT. Back when 5e9637c6 (i18n: add infrastructure for translating Git with gettext, 2011-11-18) introduced the former, test_have_prereq did not support a negated prerequisite, so the commit added GETTEXT_POISON prerequisite; if we had the modern test_have_prereq, we would have written

    test_expect_success GETTEXT_POISON '...'
that appear in t0205 as
    test_expect_success !C_LOCALE_OUTPUT '...'
I would think.
Previous: Vasco AlmeidaNext: Ævar Arnfjörð Bjarmason
Message 5 of 6 in “t5510: become resilient to GETTEXT_POISON”
  1. t5510: become resilient to GETTEXT_POISONVasco Almeida, Jul 25, 2016
  2. Junio C HamanoJul 25, 2016
  3. Duy NguyenJul 25, 2016
  4. t5510: skip tests under GETTEXT_POISON buildVasco Almeida, Jul 26, 2016
  5. Junio C HamanoJul 26, 2016
  6. Ævar Arnfjörð BjarmasonJul 26, 2016

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.