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

Re: Tests in Cygwin

From
Johannes Sixt <j.sixt@viscovery.net>
Date
May 8, 2009, 06:02 UTC
Message-ID
<4A03CAFE.4060503@viscovery.net>
In-Reply-To
<20090508020037.GA1264@coredump.intra.peff.net>
Jeff King schrieb:
Show 27 quoted lines
> On Thu, May 07, 2009 at 11:47:03AM -0400, Don Slutz wrote:
> 
>> Here is a change back to using spaces.  It also includes a change
>> to test for the code working.  Squash on top.
> 
> Maybe it is just me, but I think
> 
>   test_expect_success SYMLINKS,SANITY 'some description' '
>     the actual test
>   '
> 
> is more readable than the space (since it keeps the number of single
> quoted chunks on the line down). Which should be as simple as:
> 
>> -# prerequisites can be concatenated with '+'
>> test_have_prereq () {
>> -       save_IFS=$IFS
>> -       IFS=+
>> -       set -- $*
>> -       IFS=$save_IFS
>> -       for prerequisite
>> +       for prerequisite in $(echo $*)
>>        do
>>                case $satisfied in
>>                *" $prerequisite "*)
> 
>   +for prerequisite in $(echo "$1" | tr , ' ')

So, you dislike the space separator, but you also dislike the IFS games that save a few new processes? ;) (Think of Windows, where fork is expensive).

-- Hannes
Previous: Jeff KingNext: Junio C Hamano
Message 10 of 16 in “Tests in Cygwin”
  1. Hannu KoivistoApr 17, 2009
  2. Don SlutzMay 6, 2009
  3. Junio C HamanoMay 6, 2009
  4. Johannes SixtMay 7, 2009
  5. Don SlutzMay 7, 2009
  6. Don SlutzMay 7, 2009
  7. Junio C HamanoMay 8, 2009
  8. Johannes SixtMay 8, 2009
  9. Jeff KingMay 8, 2009
  10. Johannes SixtMay 8, 2009
  11. Junio C HamanoMay 8, 2009
  12. Alex RiesenMay 8, 2009
  13. Don SlutzMay 8, 2009
  14. Johannes SixtMay 8, 2009
  15. Alex RiesenMay 8, 2009
  16. Junio C HamanoMay 8, 2009

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.