select: enhance test
authorEric Blake <eblake@redhat.com>
Wed, 3 Oct 2012 01:38:24 +0000 (19:38 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 3 Oct 2012 01:38:24 +0000 (19:38 -0600)
commit2f58d08d66740bfe7fe5c581027965da04afecd7
tree76dd2cfda9f08ab28b13312b97e4610a7ddd9ff6
parentb5b92d84e19423e7de0935abd79a2b7c6df213c2
select: enhance test

Make sure the test is not picking up stale errno values, and add
a test for nfds validation.

* tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
New functions.
(test_function): Enhance test.
(do_select_bad_fd): Avoid any stale errno values.
ChangeLog
tests/test-select.h