On 2012-06-07 22:04 +0200, Thomas Dickey wrote: > On Thu, Jun 07, 2012 at 01:43:11PM +0200, Sven Joachim wrote: >> On 2012-06-07 12:51 +0200, Thomas Dickey wrote: >> >> > On Thu, Jun 07, 2012 at 06:42:24AM +0000, shawn wrote: >> >> Package: libncursesw5 >> >> Version: 5.9-8 >> >> Severity: important >> >> Tags: upstream >> >> >> >> int main() { >> >> struct pollfd myfds; >> >> int ret; >> >> >> >> myfds.fd = 0; >> >> myfds.events = POLLIN; >> >> >> >> ret = poll(&myfds, 1, 100); >> > >> > Reflecting on it, the check relies on the given file-descriptor and >> > timeout. >> > Standard input is not redirected. >> > >> > The check does need a tty though (for Darwin). The return-code for that >> > might >> > be a -1 (making a comparison for that case more apt - will have to test). >> > >> > Almost all of my build-logs (reviewing my build-logs, I see one out of ~60 >> > combinations failing for Linux) for Linux show it working - probably >> > depends >> > upon the environment. >> >> I am surprised to read that, since the test has apparently always failed >> not only on the Debian buildds, but also in Fedora[1]. For me it also >> fails unless stdin is redirected. > > I don't know either: I last changed that check (CF_FUNC_POLL) at the end of > January (to add the check for /dev/null), and have rebuilt most platforms > since > then. The previous version is from 2006. > > I build everything essentially in the same way (redirecting stdout/stderr,
Do you also redirect stdin? Otherwise it's hard to get a non-zero result from poll(): you have to manage pressing the return key during the 100 milliseconds the test takes, it seems. Cheers, Sven -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org