unistd-safer: add unit test
authorEric Blake <ebb9@byu.net>
Mon, 7 Dec 2009 17:17:07 +0000 (10:17 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 8 Dec 2009 03:56:47 +0000 (20:56 -0700)
commita1afba1b2122388e9a120b6a1f011367e6db1518
tree72b3daa658c9fcebead73f296090a8e4f2c30ab2
parent73da5fb7e129f1fa540e040582cda710b8c2cce4
unistd-safer: add unit test

Add more unit tests.  Meanwhile, fix compilation error on mingw when
testing unistd-safer and fchdir together; and avoid gcc warning on
platforms without setmode.

* modules/unistd-safer-tests: New file.
* tests/test-dup-safer.c: Likewise.
* tests/test-cloexec.c (setmode): Avoid compiler warning.
* tests/test-dup2.c (setmode): Likewise.
* lib/cloexec.c (dup_cloexec): Fix mingw compile error.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/cloexec.c
modules/unistd-safer-tests [new file with mode: 0644]
tests/test-cloexec.c
tests/test-dup-safer.c [new file with mode: 0644]
tests/test-dup2.c