diff options
author | Gregory P. Smith <greg@krypto.org> | 2023-12-09 00:18:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-09 00:18:35 (GMT) |
commit | 10e9bb13b8dcaa414645b9bd10718d8f7179e82b (patch) | |
tree | d9c5ca5c827cd07e3b03c525d9ca71e0f2620584 /Misc/NEWS.d/next/Tests | |
parent | ed8720ace4f73e49f149a1fdd548063ee05f42d5 (diff) | |
download | cpython-10e9bb13b8dcaa414645b9bd10718d8f7179e82b.zip cpython-10e9bb13b8dcaa414645b9bd10718d8f7179e82b.tar.gz cpython-10e9bb13b8dcaa414645b9bd10718d8f7179e82b.tar.bz2 |
gh-112334: Regression test that vfork is used when expected. (#112734)
Regression test that vfork is used when expected by subprocess.
This is written integration test style, it uses strace if it is present and appears to work to find out what system call actually gets used in different scenarios.
Test coverage is added for the default behavior and that of each of the specific arguments that must disable the use of vfork. obviously not an entire test matrix, but it covers the most important aspects.
If there are ever issues with this test being flaky or failing on new platforms, rather than try and adapt it for all possible platforms, feel free to narrow the range it gets tested on when appropriate. That is not likely to reduce coverage.
Diffstat (limited to 'Misc/NEWS.d/next/Tests')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2023-12-04-15-56-11.gh-issue-112334.FFc9Ti.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2023-12-04-15-56-11.gh-issue-112334.FFc9Ti.rst b/Misc/NEWS.d/next/Tests/2023-12-04-15-56-11.gh-issue-112334.FFc9Ti.rst new file mode 100644 index 0000000..aeaad6e --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2023-12-04-15-56-11.gh-issue-112334.FFc9Ti.rst @@ -0,0 +1,2 @@ +Adds a regression test to verify that ``vfork()`` is used when expected by +:mod:`subprocess` on vfork enabled POSIX systems (Linux). |