From: Thomas Weißschuh Date: Thu, 26 Feb 2026 16:55:58 +0000 (+0100) Subject: tests/lsfd: skip executable mode tests when not running as root X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97cc11b16027a0694fcf25ae46a3116a658bec0d;p=thirdparty%2Futil-linux.git tests/lsfd: skip executable mode tests when not running as root This test does not necessarily work without root. Reported-by: Christian Hesse Signed-off-by: Thomas Weißschuh --- diff --git a/tests/ts/lsfd/column-xmode b/tests/ts/lsfd/column-xmode index 048be3b5d..2a4ab0f16 100755 --- a/tests/ts/lsfd/column-xmode +++ b/tests/ts/lsfd/column-xmode @@ -87,6 +87,8 @@ EXPR='(ASSOC == "mem") and (INODE == '"$INO"') and (MODE != "r--") and (MODE != ts_init_subtest "MODE-x-bit" if [ "$QEMU_USER" == "1" ]; then ts_skip_subtest "running under qemu-user emulation" +elif [ "$UID" != "0" ]; then + ts_skip_subtest "no root permissions" else { coproc MKFDS { "$TS_HELPER_MKFDS" ro-regular-file $FD; } @@ -103,6 +105,8 @@ fi ts_init_subtest "XMODE-x-bit" if [ "$QEMU_USER" == "1" ]; then ts_skip_subtest "running under qemu-user emulation" +elif [ "$UID" != "0" ]; then + ts_skip_subtest "no root permissions" else { coproc MKFDS { "$TS_HELPER_MKFDS" ro-regular-file $FD; }