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

Re: [PATCH 06/14] t9501-*.sh: Fix a test failure on Cygwin

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Dec 16, 2010, 19:25 UTC
Message-ID
<4D0A67B7.5010202@ramsay1.demon.co.uk>
In-Reply-To
<201012142004.30322.jnareb@gmail.com>
Jakub Narebski wrote:
Show 13 quoted lines
> Ramsay Jones wrote:
>> The first (setup) test attempts to create a file, using the
>> test_commit function, called 'i can has snapshot?'. On cygwin
>> (and MinGW) this fails with a "No such file or directory" error.
>> In order to fix the tests, we simply remove the '?' wildcard
>> from the name, since the purpose of these tests is not about
>> creating funny filenames.
>>
>> Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
> 
> All right.
> 
> Acked-by: Jakub Narebski <jnareb@gmail.com>
Thanks.
> BTW. if the test was about handling funny filenames (containing
> leading, embedded and trailing space, +&@=<>"' characters), what
> should we do instead?

Hmm... dunno; take a look at t3600-rm.sh and t4135-apply-weird-filenames.sh for inspiration? ;-)

Just FYI the "illegal" pathname characters in windows include:
    < > : " / \ | ? *
along with control chars from 0 - 31.
Also, you can't have any trailing spaces or periods.

ATB, Ramsay Jones

Previous: Jakub Narebski
Message 3 of 3 in “t9501-*.sh: Fix a test failure on Cygwin”
  1. 06/14 t9501-*.sh: Fix a test failure on CygwinRamsay Jones, Dec 14, 2010
  2. Jakub NarebskiDec 14, 2010
  3. Ramsay JonesDec 16, 2010

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.