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

Re: TTY tests are unnecessarily suppressed under Mac OS

From
Jeff King <peff@peff.net>
Date
Nov 13, 2014, 20:20 UTC
Message-ID
<20141113201959.GD3869@peff.net>
In-Reply-To
<CAO2U3QhB6rSfJn5ODE8-n2XWuBw8BePqDpQbNdx6LyWy=OFbcg@mail.gmail.com>
On Wed, Nov 12, 2014 at 02:25:52PM -0800, Michael Blume wrote:
Show 21 quoted lines
> From lib_terminal.sh:
> 
> # Reading from the pty master seems to get stuck _sometimes_
> # on Mac OS X 10.5.0, using Perl 5.10.0 or 5.8.9.
> #
> # Reproduction recipe: run
> #
> # i=0
> # while ./test-terminal.perl echo hi $i
> # do
> # : $((i = $i + 1))
> # done
> #
> # After 2000 iterations or so it hangs.
> # https://rt.cpan.org/Ticket/Display.html?id=65692
> #
> test "$(uname -s)" != Darwin &&
> 
> I tried the reproduction recipe on my mac and couldn't reproduce, so
> it may make sense to take this switch out? In any case, I've set my
> automated mac build to include TTY tests

10.5.0 is pretty ancient at this point; I can well believe that the upstream problem has been fixed. It would be nice if we knew in which version it was fixed, though. Just dropping the restriction risks people getting spurious failures if they are on an old enough version.

Do you want to roll a patch that checks $(uname) to see if we're on a recent-enough version (where we can just be conservative, and assume whatever version you have is the first one to fix it)?

-Peff
Previous: Michael BlumeNext: Jeff King
Message 2 of 3 in “TTY tests are unnecessarily suppressed under Mac OS”
  1. Michael BlumeNov 12, 2014
  2. Jeff KingNov 13, 2014
  3. Jeff KingNov 13, 2014

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.