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

Re: GIT+CYGWIN annoying test failure

From
SNSungHyun Nam <goweol@gmail.com>
Date
Feb 16, 2007, 00:04 UTC
Message-ID
<45D4F4FE.3010405@gmail.com>
In-Reply-To
<Pine.LNX.4.63.0702150236590.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Hello,
Johannes Schindelin wrote:
Show 11 quoted lines
> 
> On Thu, 15 Feb 2007, SungHyun Nam wrote:
> 
>>  check_result () {
>> +    [ -r current ] && rm -f current
>>      git-ls-files --stage | sed -e 's/ '"$_x40"' / X /' >current &&
>>      diff -u expected current
>>  }
> 
> Are you having a restrictive umask, or what are the permissions on that 
> file?
There's no problem with the umask.

$ umask 0022

I guess there is some race condition in CYGWIN or windows. And my system triggers that condition.

Check the logic above. I cannot think there is any chance that 'rm -f current && echo x >current' is success, but 'echo x >current' is fail?

Thanks, namsh

Previous: Johannes SchindelinNext: Junio C Hamano
Message 8 of 9 in “GIT+CYGWIN annoying test failure”
  1. SungHyun NamJan 24, 2007
  2. Johannes SchindelinJan 24, 2007
  3. SungHyun NamJan 29, 2007
  4. Johannes SchindelinFeb 1, 2007
  5. SungHyun NamFeb 2, 2007
  6. SungHyun NamFeb 15, 2007
  7. Johannes SchindelinFeb 15, 2007
  8. SungHyun NamFeb 16, 2007
  9. Junio C HamanoFeb 16, 2007

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.