]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-sd-device: limit the number of iterations when testing device parent/child functions 37083/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Apr 2025 11:51:21 +0000 (13:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Apr 2025 11:59:27 +0000 (13:59 +0200)
commit74cb65e45fbf3468cf6b522e4b4fa568d95f12c6
tree9f579cdb008c2c4927ac485dc6da2031cff41c56
parenta9cded655bc9b28a0d9947d883f8951c10417769
test-sd-device: limit the number of iterations when testing device parent/child functions

The test "hangs" and times out on some arm64 machines. It actually works as
expected, but the machine has 2016 children under /sys/devices/system/memory/,
and the tests do a double loop over this, which is slow enough to hit the 120 s
limit. Add a limit on the number of iterations.

Another option would be to exclude "memory" subsystem. But we may have other
subsystems which have the same problem in the future, so I think it'll be more
robust to not try to limit the fix to a specific subsystem.
src/libsystemd/sd-device/test-sd-device.c