]> git.ipfire.org Git - thirdparty/util-linux.git/commit
test: (lsfd) extend test_mkfds to manage optional file descriptors
authorMasatake YAMATO <yamato@redhat.com>
Mon, 4 Apr 2022 18:03:25 +0000 (03:03 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 4 Apr 2022 18:03:25 +0000 (03:03 +0900)
commitd14e9efd4c47fbfc0983af00d21346a71d001674
tree041ed403faa37967b07cb078bb1973c1c19ffa96
parent5211d5a18082c52c31dfc92b3c710e8e32c8ef2c
test: (lsfd) extend test_mkfds to manage optional file descriptors

This change may need to test ENDPOINTS column of lsfd.

The core part of test_mkfds command could close pre-specified file
descriptors opened by a factory. However, it could not handle file
descriptors optionally opened.

With this change, the core part can close such optionally opened file
descriptors.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c