]> git.ipfire.org Git - thirdparty/libbsd.git/commit
test: Fix closefrom() test on macOS
authorGuillem Jover <guillem@hadrons.org>
Sat, 1 Apr 2023 00:46:22 +0000 (02:46 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 17 Apr 2023 02:12:42 +0000 (04:12 +0200)
commited2eb31da97331234bb12d70c1c16cae707d7f97
tree45690eea6894a2d74dfda6658ac6f3fce804388e
parent0f8bcdfd92dc6342564192d707f339855c6fbc5f
test: Fix closefrom() test on macOS

On macOS we do not close the file descriptors, and instead mark them all
as close-on-exec. So checking whether they are not valid does not work.
test/closefrom.c