mbox series

[0/2] Fix close_range/closefrom tests

Message ID 20210824192858.681680-1-adhemerval.zanella@linaro.org
Headers show
Series Fix close_range/closefrom tests | expand

Message

Adhemerval Zanella Aug. 24, 2021, 7:28 p.m. UTC
This patchset fixes io/tst-closefrom, misc/tst-close_range,
posix/tst-spawn5 tests on some environment where the tests hit the
file descriptors limit or if there is already file descriptor
opened within the range created by the tests.

Adhemerval Zanella (2):
  support: Add support_open_dev_null_range
  Use support_open_dev_null_range io/tst-closefrom,
    misc/tst-close_range, and posix/tst-spawn5 (BZ #28260)

 io/tst-closefrom.c                        |  15 +--
 posix/tst-spawn5.c                        |  13 +-
 support/Makefile                          |   2 +
 support/support-open-dev-null-range.c     | 134 +++++++++++++++++++++
 support/support.h                         |   8 ++
 support/tst-support-open-dev-null-range.c | 137 ++++++++++++++++++++++
 sysdeps/unix/sysv/linux/tst-close_range.c |  25 ++--
 7 files changed, 292 insertions(+), 42 deletions(-)
 create mode 100644 support/support-open-dev-null-range.c
 create mode 100644 support/tst-support-open-dev-null-range.c