Attached is a patch to skip testcases fcntl24, fcntl25 and fcntl26 if
the host is running on tmpfs. The reason being that, as documented here
http://bugzilla.kernel.org/show_bug.cgi?id=13626, F_SETLEASE and F_WRLCK
cannot work on tmpfs.
Index: testcases/kernel/syscalls/fcntl/fcntl24.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl24.c,v
retrieving revision 1.11
diff -u -r1.11 fcntl24.c
--- testcases/kernel/syscalls/fcntl/fcntl24.c 23 Mar 2009 13:35:41 -0000 1.11
+++ testcases/kernel/syscalls/fcntl/fcntl24.c 29 Jul 2009 14:49:08 -0000
@@ -131,6 +131,14 @@
"Cannot do fcntl on a file located on an NFS filesystem");
}
+ /*
+ * check if the current filesystem is tmpfs
+ */
+ if (tst_is_cwd_tmpfs()) {
+ tst_brkm(TCONF, cleanup,
+ "Cannot do fcntl on a file located on an TMPFS filesystem");
+ }
+
/* set the expected errnos... */
TEST_EXP_ENOS(exp_enos);
Index: testcases/kernel/syscalls/fcntl/fcntl25.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl25.c,v
retrieving revision 1.9
diff -u -r1.9 fcntl25.c
--- testcases/kernel/syscalls/fcntl/fcntl25.c 23 Mar 2009 13:35:41 -0000 1.9
+++ testcases/kernel/syscalls/fcntl/fcntl25.c 29 Jul 2009 14:49:08 -0000
@@ -132,6 +132,14 @@
"Cannot do fcntl on a file located on an NFS filesystem");
}
+ /*
+ * check if the current filesystem is tmpfs
+ */
+ if (tst_is_cwd_tmpfs()) {
+ tst_brkm(TCONF, cleanup,
+ "Cannot do fcntl on a file located on an TMPFS filesystem");
+ }
+
/* set the expected errnos... */
TEST_EXP_ENOS(exp_enos);
Index: testcases/kernel/syscalls/fcntl/fcntl26.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl26.c,v
retrieving revision 1.9
diff -u -r1.9 fcntl26.c
--- testcases/kernel/syscalls/fcntl/fcntl26.c 23 Mar 2009 13:35:41 -0000 1.9
+++ testcases/kernel/syscalls/fcntl/fcntl26.c 29 Jul 2009 14:49:08 -0000
@@ -132,6 +132,14 @@
"Cannot do fcntl on a file located on an NFS filesystem");
}
+ /*
+ * check if the current filesystem is tmpfs
+ */
+ if (tst_is_cwd_tmpfs()) {
+ tst_brkm(TCONF, cleanup,
+ "Cannot do fcntl on a file located on an TMPFS filesystem");
+ }
+
/* set the expected errnos... */
TEST_EXP_ENOS(exp_enos);
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list