Enhance tests for module 'isatty'.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Jan 2012 02:56:16 +0000 (03:56 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Jan 2012 02:56:16 +0000 (03:56 +0100)
commit573631b2b57b8323022e70879064a815d16799b8
tree546c33e8ae658ee06c2a920fe1a6e1569a5b6d39
parentd7af94ea8b164efa0cc8e8618875a8e9c127ec3c
Enhance tests for module 'isatty'.

* modules/isatty-tests (Depends-on): Add pipe-posix.
* tests/test-isatty.c: Include <fcntl.h>.
(DEV_NULL): New macro.
(main): Test the resut of isatty() also on regular files, pipes, and
/dev/null.
ChangeLog
modules/isatty-tests
tests/test-isatty.c