Re: [RFC PATCH] config.mak.uname: add HAVE_DEV_TTY to cygwin config section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 02, 2024 at 11:15:35PM +0100, Ramsay Jones wrote:

> Still, I need to do a full test suite run, just to check for any regressions.
> (Unfortunately, that takes about 6 hours to run, so I can't get to that soon).

I'm not sure if we cover this at all in the test suite, since it implies
access to an actual terminal. All of the auth tests rely on the askpass
interface to simulate the user typing a password.

We do have test_terminal, which simulates a pty, but I don't think it
would work for this case. For one thing, I don't know that it counts as
the controlling terminal, so opening /dev/tty wouldn't find it. And two,
the stdin handling had race problems that caused us to remove it
recently. So it's really only good for checking isatty() for
stdout/stderr.

On the plus side, if it works for you in a single manual test then I
suspect that's enough. The key thing is really "can we get something
tty-ish that responds to termios", and it sounds like you can.

Certainly doesn't hurt to test the single-key mode of "add -p", etc,
though.

> Anyhow, just a quick heads up.

Thanks for looking into it. :)

-Peff




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux