unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org>
To: libc-alpha@sourceware.org
Subject: [PATCH 0/2] Fix close_range/closefrom tests
Date: Tue, 24 Aug 2021 16:28:56 -0300	[thread overview]
Message-ID: <20210824192858.681680-1-adhemerval.zanella@linaro.org> (raw)

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

-- 
2.30.2


             reply	other threads:[~2021-08-24 19:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24 19:28 Adhemerval Zanella via Libc-alpha [this message]
2021-08-24 19:28 ` [PATCH 1/2] support: Add support_open_dev_null_range Adhemerval Zanella via Libc-alpha
2021-08-24 19:28 ` [PATCH 2/2] Use support_open_dev_null_range io/tst-closefrom, misc/tst-close_range, and posix/tst-spawn5 (BZ #28260) Adhemerval Zanella via Libc-alpha
2021-08-25  3:15   ` Michael Hudson-Doyle via Libc-alpha
2021-08-25  3:41     ` Michael Hudson-Doyle via Libc-alpha
2021-08-25  8:40       ` Michael Hudson-Doyle via Libc-alpha
2021-08-25 11:46         ` Adhemerval Zanella via Libc-alpha
2021-09-14  0:46           ` Michael Hudson-Doyle via Libc-alpha
2021-09-16 12:09             ` Florian Weimer via Libc-alpha
2021-09-16 23:44               ` Michael Hudson-Doyle via Libc-alpha
2021-09-17 10:12                 ` Florian Weimer via Libc-alpha
2021-09-19 21:57                   ` Michael Hudson-Doyle via Libc-alpha
2021-09-20 10:54                     ` Florian Weimer via Libc-alpha
2021-09-20 23:20                       ` Michael Hudson-Doyle via Libc-alpha
2021-09-21 10:30                         ` Michael Hudson-Doyle via Libc-alpha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210824192858.681680-1-adhemerval.zanella@linaro.org \
    --to=libc-alpha@sourceware.org \
    --cc=adhemerval.zanella@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).