[PATCH v2 0/4] Add tests for posix_spawn
Jeremy Drake
cygwin@jdrake.com
Fri Jun 20 18:00:23 GMT 2025
I got all of the tests that I had written ported to run within the
winsup/testsuite context. I did not include a test for NULL envp, since
that seems to not be specified by the POSIX standard, and behavior differs
between Cygwin and Linux.
More tests could be added (notably for
posix_spawn_file_actions_add(f)chdir), but this is a good start.
Jeremy Drake (4):
Cygwin: testsuite: add posix_spawn tests
Cygwin: testsuite: test posix_spawnp
Cygwin: testsuite: test signal mask and ignore options.
Cygwin: testsuite: test posix_spawn_file_actions.
winsup/testsuite/Makefile.am | 4 +
.../testsuite/winsup.api/posix_spawn/errors.c | 57 ++++++++
winsup/testsuite/winsup.api/posix_spawn/fds.c | 124 ++++++++++++++++++
.../winsup.api/posix_spawn/signals.c | 82 ++++++++++++
.../testsuite/winsup.api/posix_spawn/spawnp.c | 25 ++++
.../testsuite/winsup.api/posix_spawn/test.h | 48 +++++++
6 files changed, 340 insertions(+)
create mode 100644 winsup/testsuite/winsup.api/posix_spawn/errors.c
create mode 100644 winsup/testsuite/winsup.api/posix_spawn/fds.c
create mode 100644 winsup/testsuite/winsup.api/posix_spawn/signals.c
create mode 100644 winsup/testsuite/winsup.api/posix_spawn/spawnp.c
create mode 100644 winsup/testsuite/winsup.api/posix_spawn/test.h
--
2.49.0.windows.1
More information about the Cygwin-patches
mailing list