mirror of
https://github.com/systemd/systemd.git
synced 2026-08-12 22:17:19 +00:00
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.
(cherry picked from commit a551c1bd56)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user