]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: skip TEST-07-PID1.DeferReactivation with sanitizers
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 4 May 2026 20:06:02 +0000 (21:06 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 5 May 2026 08:37:13 +0000 (10:37 +0200)
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

index ff795ff002239d1159729de74d0305e30773aaae..8d16ff114507f954af62544e13e398ac36792cf7 100755 (executable)
@@ -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'