]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: (tests) skip tests using fd flags on qemu-user
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 29 Apr 2024 06:11:57 +0000 (08:11 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 4 Jun 2024 18:57:21 +0000 (20:57 +0200)
The flags value visible in /proc/$PID/fdinfo/ is encoded using the
platform the kernel is running on.
Not all platforms use the same numeric flag value,
making this cross-platform interpretation brittle.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/ts/lsfd/mkfds-directory
tests/ts/lsfd/mkfds-symlink

index 738cb86885ed07379d151789d92be152faf3ab37..272bdb3878978d604c6fa4f1943b39c1936520f4 100755 (executable)
@@ -20,6 +20,8 @@ TS_DESC="directory"
 . "$TS_TOPDIR"/functions.sh
 ts_init "$*"
 
+ts_skip_qemu_user
+
 ts_check_test_command "$TS_CMD_LSFD"
 ts_check_test_command "$TS_CMD_FINDMNT"
 ts_check_test_command "$TS_HELPER_MKFDS"
index 56eccca6cde62e47d4194fe6036a1d8efe4369d2..42beaec7a8484419f72856b859ea3b74bd30bfa8 100755 (executable)
@@ -20,6 +20,8 @@ TS_DESC="symbolic link itself opened with O_PATH"
 . "$TS_TOPDIR"/functions.sh
 ts_init "$*"
 
+ts_skip_qemu_user
+
 ts_check_test_command "$TS_CMD_LSFD"
 
 ts_check_test_command "$TS_HELPER_MKFDS"