[LTP] [PATCH] syscalls/unlink09: report unsupported inode flags as TCONF

XiaoLei Wu wxl18715129466@gmail.com
Tue Jun 2 08:14:41 CEST 2026


If FS_IOC_GETFLAGS fails with ENOTTY, the filesystem does not support
inode flags. This is an unsupported test configuration rather than a
broken test setup, so report TCONF instead of TBROK.

Signed-off-by: XiaoLei Wu <wxl18715129466@gmail.com>
---
 testcases/kernel/syscalls/unlink/unlink09.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/unlink/unlink09.c b/testcases/kernel/syscalls/unlink/unlink09.c
index 10d4e8a..c9f6041 100644
--- a/testcases/kernel/syscalls/unlink/unlink09.c
+++ b/testcases/kernel/syscalls/unlink/unlink09.c
@@ -63,7 +63,7 @@ static void setup(void)
 	if (TST_RET == -1 && TST_ERR == ENOTTY) {
 		SAFE_CLOSE(fd_immutable);
 
-		tst_brk(TBROK, "Inode attributes not supported by '%s'",
+		tst_brk(TCONF, "Inode attributes not supported by '%s'",
 			tst_device->fs_type);
 	}
 
-- 
2.43.0


More information about the ltp mailing list