test-dup2: reduce dependencies
authorEric Blake <ebb9@byu.net>
Mon, 28 Dec 2009 13:24:04 +0000 (06:24 -0700)
committerEric Blake <ebb9@byu.net>
Mon, 28 Dec 2009 13:53:14 +0000 (06:53 -0700)
commit1d0664a751fdfdcae30e22a5e6bd82f442111b36
treef4e7fe0a3a3a222be1e76875bebebbf18878dd23
parent65887d1054c42a1650d668de2065afa7a7e7fc36
test-dup2: reduce dependencies

dup2 is fully tested if the cloexec module is in use, but it is
also used in a number of modules where dragging in cloexec is
over the top for just using dup2 to test whether an fd is valid.

* modules/cloexec (Configure.ac): Set witness.
* modules/dup2-tests (Depends-on): Drop cloexec.
* tests/test-dup2.c (main): Skip portion of test if cloexec module
not present.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
modules/cloexec
modules/dup2-tests
tests/test-dup2.c