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

Re: [PATCH] test-lib-functions: fix logic error in test_must_fail

From
Jeff King <peff@peff.net>
Date
Nov 25, 2015, 00:10 UTC
Message-ID
<20151125001040.GA19620@sigill.intra.peff.net>
In-Reply-To
<5654FB50.4000102@ramsayjones.plus.com>
On Wed, Nov 25, 2015 at 12:05:36AM +0000, Ramsay Jones wrote:
Show 9 quoted lines
> >   ...
> >   if ! list_contains "$_test_ok" success && test "$exit_code" -eq 0
> >   then
> > 	return 0
> >   fi
>     ^^
> Is this intended to be part of the if..elif.. chain, or a separate
> initial conditional? Hmm, actually it doesn't matter since it has
> exactly the same logic error as the original patch ... :-D

I meant it as part of the same one, but yeah, it has the wrong "return" (I noticed it when writing up the real patch as a SQUASH on top of Lars's topics).

> > They don't fail consistently. It's a SIGPIPE race.
> 
> Yes, and unfortunately I can't get it to happen for me.
> Which platforms has it been observed on?

I haven't tried to reproduce it, but I think it was seen originally in the Travis build.

-Peff
Previous: Ramsay Jones
Message 4 of 4 in “test-lib-functions: fix logic error in test_must_fail”
  1. test-lib-functions: fix logic error in test_must_failRamsay Jones, Nov 24, 2015
  2. Jeff KingNov 24, 2015
  3. Ramsay JonesNov 25, 2015
  4. Jeff KingNov 25, 2015

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.