]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-oomd: fix flakiness under sanitizers
authorLuca Boccassi <luca.boccassi@gmail.com>
Tue, 5 May 2026 14:33:49 +0000 (15:33 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 May 2026 15:31:43 +0000 (17:31 +0200)
commitc0aa351ba966bb89bab11673cae72ccba2e16bc4
treee8f676557963e803b8cfbfd1620669488d92863c
parent4de3f59774b7afeaa6a70d6f072aeb5e5e1222f0
test-oomd: fix flakiness under sanitizers

The test asserts that pgscan is 0, but under sanitizers this sometimes
fails and shows up as 1. We cannot control what the kernel scans, and
with sanitizers the runtime can be slow enough it's possible that the
kernel does a pass on the cgroup of the unit test.
Instead of asserting that it's 0, assert that it's between 0 and 9,
which seems a reasonable range.

Fixes https://github.com/systemd/systemd/issues/37710
src/oom/test-oomd-util.c