test-fd-util: extend close_all_fds() test to trigger all fallback codepaths
authorLennart Poettering <lennart@poettering.net>
Thu, 12 Aug 2021 09:22:50 +0000 (11:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Oct 2021 16:02:49 +0000 (18:02 +0200)
commitb68919724118e6fa4b29e7b7f8ceb54a127cca5d
tree6b8c7b3b5bff32ee4556ec1d356ec8fa70649b81
parent73fc0cbc87131f9a034d3a348bcbb606ccebecbc
test-fd-util: extend close_all_fds() test to trigger all fallback codepaths

This extends the close_all_fds() logic to overmount /proc with an empty
tmpfs, and/or to block close_range() via seccomp, so that we run the
test case for the function with the fallback paths.

This should make sure that we don't regress in limited environments or
older kernels.
src/test/meson.build
src/test/test-fd-util.c