From: Luca Boccassi Date: Mon, 4 May 2026 20:06:02 +0000 (+0100) Subject: test: skip TEST-07-PID1.DeferReactivation with sanitizers X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a551c1bd56ef2756eb0604c8f2a7d1a1b63c9c77;p=thirdparty%2Fsystemd.git test: skip TEST-07-PID1.DeferReactivation with sanitizers This test relies on tight timers, and is flaky under sanitizers as everything slows down a lot. Just skip it. --- diff --git a/test/units/TEST-07-PID1.DeferReactivation.sh b/test/units/TEST-07-PID1.DeferReactivation.sh index ff795ff0022..8d16ff11450 100755 --- a/test/units/TEST-07-PID1.DeferReactivation.sh +++ b/test/units/TEST-07-PID1.DeferReactivation.sh @@ -4,6 +4,13 @@ set -eux set -o pipefail +if [[ -v ASAN_OPTIONS ]]; then + # Under sanitizers the service is slow enough that the calendar timer with 5s resolution ends up + # missing ticks, making the test flaky + echo "Sanitizers detected, skipping the test..." + exit 0 +fi + systemctl start defer-reactivation.timer timeout 20 bash -c 'until [[ -e /tmp/defer-reactivation.log ]]; do sleep .5; done'