From a551c1bd56ef2756eb0604c8f2a7d1a1b63c9c77 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Mon, 4 May 2026 21:06:02 +0100 Subject: [PATCH] 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. --- test/units/TEST-07-PID1.DeferReactivation.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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'