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

Re: [PATCH] t4210: skip i18n tests that don't work on FreeBSD

From
Jeff King <peff@peff.net>
Date
Nov 27, 2019, 16:24 UTC
Message-ID
<20191127162416.GB30581@sigill.intra.peff.net>
In-Reply-To
<20191127151708.50531-1-emaste@freefall.freebsd.org>
On Wed, Nov 27, 2019 at 03:17:08PM +0000, Ed Maste wrote:
Show 17 quoted lines
> From: Ed Maste <emaste@freebsd.org>
> 
> A number of t4210-log-i18n tests added in 4e2443b181 set LC_ALL to a UTF-8
> locale (is_IS.UTF-8) but then pass an invalid UTF-8 string to --grep.
> FreeBSD's regcomp() fails in this case with REG_ILLSEQ sequence which git
> then passes to die():
> 
> fatal: command line: '�': illegal byte sequence
> 
> When these tests were added the commit message stated:
> 
> | It's possible that this
> | test breaks the "basic" and "extended" backends on some systems that
> | are more anal than glibc about the encoding of locale issues with
> | POSIX functions that I can remember
> 
> which seems to be the case here.
Makes sense, but...
> Extend test-lib.sh to add a FREEBSD prereq (akin to MINGW) and add !FREEBSD
> to these tests.

Before we start growing more system-specific prereqs here, can we add a layer of indirection? Convert this test to use a REGEX_ALLOW_ILLSEQ prereq (or maybe there's a better name), and then set it for both mingw and freebsd?

-Peff
Previous: Ed MasteNext: Ed Maste
Message 2 of 9 in “t4210: skip i18n tests that don't work on FreeBSD”
  1. t4210: skip i18n tests that don't work on FreeBSDEd Maste, Nov 27, 2019
  2. Jeff KingNov 27, 2019
  3. Ed MasteNov 27, 2019
  4. Jeff KingNov 27, 2019
  5. t4210: skip i18n tests that don't work on FreeBSDEd Maste, Nov 27, 2019
  6. Jeff KingNov 27, 2019
  7. Ed MasteNov 27, 2019
  8. Ed MasteDec 2, 2019
  9. Junio C HamanoDec 2, 2019

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.