]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: check the next elapse timer timestamp after deserialization
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 23 Sep 2025 19:04:12 +0000 (21:04 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 25 Sep 2025 10:55:04 +0000 (12:55 +0200)
commitf4c3c107d9be4e922a080fc292ed3889c4e0f4a5
tree49bf49d3a5fa03060e85fbe219a05d149577ca7a
parent5730a400fd5ee82566fe03eb832121a0d4bc26b6
test: check the next elapse timer timestamp after deserialization

When deserializing a serialized timer unit with RandomizedDelaySec= set,
systemd should use the last inactive exit timestamp instead of current
realtime to calculate the new next elapse, so the timer unit actually
runs in the given calendar window.

Provides coverage for:
  - https://github.com/systemd/systemd/issues/18678
  - https://github.com/systemd/systemd/pull/27752
test/units/TEST-53-TIMER.RandomizedDelaySec-reload.sh [new file with mode: 0755]
test/units/util.sh