According to nfs(5), NLM supports advisory file locks only. So skip fcntl16 test if NFS.
Signed-off-by: Xiong Zhou <[email protected]> --- testcases/kernel/syscalls/fcntl/fcntl16.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testcases/kernel/syscalls/fcntl/fcntl16.c b/testcases/kernel/syscalls/fcntl/fcntl16.c index 44b6a80..7dba6ea 100644 --- a/testcases/kernel/syscalls/fcntl/fcntl16.c +++ b/testcases/kernel/syscalls/fcntl/fcntl16.c @@ -51,6 +51,8 @@ #include <sys/types.h> #include <sys/wait.h> +#include "tst_fs_type.h" + #define SKIPVAL 0x0f00 //#define SKIP SKIPVAL, 0, 0L, 0L, IGNORED #define SKIP 0,0,0L,0L,0 @@ -412,6 +414,12 @@ void setup(void) tst_tmpdir(); + /* On NFS or not */ + if (tst_fs_type(cleanup, ".") == TST_NFS_MAGIC) { + tst_brkm(TCONF, cleanup, "Cannot test madatory locking " + "on a file located on an NFS filesystem"); + } + /* set up temp filename */ sprintf(tmpname, "fcntl4.%d", parent); -- 1.8.3.1 ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
