diff options
author | 2024-09-20 15:37:49 +0200 | |
---|---|---|
committer | 2024-09-23 11:22:11 +0200 | |
commit | 7d85e8cb0489d2ca02cc253ac7b9d101672246b5 (patch) | |
tree | 9170c1a6dcf8bb57e70f8f7b89d80948e0c3a8e1 /.pre-commit-config.yaml | |
parent | GH-113655: Lower the C recursion limit for HPPA, PPC64 and SPARC (#124264) (diff) | |
download | cpython-gentoo-3.12.6_p3.tar.gz cpython-gentoo-3.12.6_p3.tar.bz2 cpython-gentoo-3.12.6_p3.zip |
gh-124213: Skip tests failing inside systemd-nspawn --suppress-sync=true (#124215)gentoo-3.12.6_p3
Add a helper function that checks whether the test suite is running
inside a systemd-nspawn container, and skip the few tests failing
with `--suppress-sync=true` in that case. The tests are failing because
`--suppress-sync=true` stubs out `fsync()`, `fdatasync()` and `msync()`
calls, and therefore they always return success without checking for
invalid arguments.
Call `os.open(__file__, os.O_RDONLY | os.O_SYNC)` and check the errno to
detect whether `--suppress-sync=true` is actually used, and skip
the tests only in that scenario.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to '.pre-commit-config.yaml')
0 files changed, 0 insertions, 0 deletions