From dd8ef6c062fe0b11f2c3c0cc50270e97fde4c1e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Mon, 29 Apr 2024 08:11:57 +0200 Subject: [PATCH] lsfd: (tests) skip tests using fd flags on qemu-user MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tests/ts/lsfd/mkfds-directory | 2 ++ tests/ts/lsfd/mkfds-symlink | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/ts/lsfd/mkfds-directory b/tests/ts/lsfd/mkfds-directory index 738cb8688..272bdb387 100755 --- a/tests/ts/lsfd/mkfds-directory +++ b/tests/ts/lsfd/mkfds-directory @@ -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" diff --git a/tests/ts/lsfd/mkfds-symlink b/tests/ts/lsfd/mkfds-symlink index 56eccca6c..42beaec7a 100755 --- a/tests/ts/lsfd/mkfds-symlink +++ b/tests/ts/lsfd/mkfds-symlink @@ -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" -- 2.47.3