]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: add test_enosys helper
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 24 Apr 2023 16:35:27 +0000 (18:35 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 24 Apr 2023 20:05:55 +0000 (22:05 +0200)
commitc93114cdbec6eaa860aeda11b1ce8c455273539a
tree2cf086cfe3b20f96e3dfe80a791505defa81d367
parente828630a16c7c31bfbce228d6993c1cff7088152
tests: add test_enosys helper

This helper can be used to block certain syscalls with ENOSYS for
executed programs. This allows testing of fallback codepaths inside
util-linux.

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