test(process_registry): pin that the availability probe argv omits OOMPolicy too

Requested in the review of #102357: the spawn builder was pinned, the probe
was not, and the probe is where the rejection was cached as "unavailable".
This commit is contained in:
kshitijk4poor
2026-09-06 14:52:28 +05:30
committed by kshitij
parent 78fc943ca4
commit 3513a3b922
+6
View File
@@ -2368,6 +2368,12 @@ class TestSystemdCgroupIsolation:
assert first is True
assert second is True
assert len(probe_calls) == 1, "probe must run only once (cached)"
# The probe must not carry OOMPolicy= either: that is the argv systemd
# rejected on scope units and cached as "unavailable" (#102486).
probe_argv = probe_calls[0][0]
assert not any(
value.startswith("OOMPolicy=") for value in probe_argv if isinstance(value, str)
), probe_argv
def test_systemd_scope_first_probe_is_serialized(self, monkeypatch):
"""Concurrent first-use callers must wait for one definitive probe.