]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: fix capability testing
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 Sep 2023 08:34:37 +0000 (10:34 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 Sep 2023 18:00:59 +0000 (20:00 +0200)
commita76299c1d44202b32ed8c949b47bb8ef5304824d
tree5c08ad046d2fd9c729ab20caba6316f8f2719cdc
parentc89edac5c300a254dd9be09191702b9e5c8c536f
tests: fix capability testing

The old capability testing logic would incorrectly interpret the following
output from getpcaps as cap_wake_alarm being supported:

$ getpcaps 0
0: cap_wake_alarm=i

Instead of realying on brittle command output parsing at a test helper
to detect capabilities.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build
tests/commands.sh
tests/functions.sh
tests/helpers/Makemodule.am
tests/helpers/test_cap.c [new file with mode: 0644]
tests/ts/lsfd/mkfds-timerfd-alarm