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

Re: [PATCH] t9902: split test to run on appropriate systems

From
Adam Dinwoodie <adam@dinwoodie.org>
Date
May 2, 2022, 14:46 UTC
Message-ID
<20220502144610.fyxns33cfrpa5gsy@lucy.dinwoodie.org>
In-Reply-To
<20220409153626.qqn23c7vsw4ftges@lucy.dinwoodie.org>
On Sat, Apr 09, 2022 at 04:36:26PM +0100, Adam Dinwoodie wrote:
Show 31 quoted lines
> On Fri, Apr 08, 2022 at 12:56:30PM +0200, Ævar Arnfjörð Bjarmason wrote:
> > 
> > <snip>
> > 
> > I converted all the straightforward cases, where these tests were either
> > a bit misleading, or we'd actually skip testing on some systems
> > needlessly e.g. if they supported \t in a name but not \n.
> > 
> > This leaves only 8 remaining cases of FUNNYNAMES, all of those similarly
> > seem like subtle potential issues. I.e. we're creating files with
> > characters like "?" or "*" in the name.
> > 
> > But the prerequisite never checks for that, we're just implicitly
> > assuming that a FS that can do [\t\n"] an also do [*?+] or whatever.
> > 
> > In the case of the "rm" test we'd unconditionally create a file with a
> > space in its name, but then conditional on FUNNYNAMES remove it.
> > 
> > <snip>
> 
> That's a significantly neater patch than I was expecting!  I can see
> Junio's added my quick fix for the v2.36.0 rc; what's the process from
> here in this circumstance?  Wait for v2.36.0 to be released properly,
> then submit the patches?
> 
> Fixing t9902 using the same scheme as above adds the diff below, after
> applying the patch above to the v2.36.0-rc1 tag; I've confirmed this
> works as expected on Cygwin, with the test gated by FS_NAME_TAB passing
> and the test gated by FS_NAME_BACKSLASH being skipped.
> 
> <snip>

Ævar, are you able to submit your patch here to provide the better long-term fix? Once you've submitted your signed-off version, I can submit the t9902-specific changes on top, or I'm happy for you to just integrate them into your commit if that's easier.

Previous: Adam Dinwoodie
Message 4 of 4 in “t9902: split test to run on appropriate systems”
  1. t9902: split test to run on appropriate systemsAdam Dinwoodie, Apr 8, 2022
  2. Ævar Arnfjörð BjarmasonApr 8, 2022
  3. Adam DinwoodieApr 9, 2022
  4. Adam DinwoodieMay 2, 2022

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.