Skip to contentSkip to conversation

fcntl/fcntl31.c: add I/O availability signals test for fcntl(2)

PATCH In review Xiaoguang Wang 1 participant 1 message Dec 5, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 fcntl/fcntl31.c: add I/O availability signals test for fcntl(2)

create a new case to test F_GETOWN, F_SETOWN, F_GETOWN_EX, F_SETOWN_EX, F_GETSIG, F_SETSIG for fcntl(2)

---
 configure.ac                              |   1 +
 m4/ltp-fcntl.m4                           |  28 +++
 runtest/syscalls                          |   2 +
 testcases/kernel/syscalls/fcntl/fcntl31.c | 405 ++++++++++++++++++++++++++++++
 4 files changed, 436 insertions(+)
 create mode 100644 m4/ltp-fcntl.m4
 create mode 100644 testcases/kernel/syscalls/fcntl/fcntl31.c
configure.ac +1 -0
index 4846afd..0b8eb29 100644
@@ -170,5 +170,6 @@ LTP_CHECK_FS_IOC_FLAGS
 LTP_CHECK_MREMAP_FIXED
 LTP_CHECK_KERNEL_DEVEL
 LTP_CHECK_XFS_QUOTACTL
+LTP_CHECK_FCNTL
 
 AC_OUTPUT
m4/ltp-fcntl.m4 new file +28 -0
new file mode 100644
index 0000000..b14eeb9
@@ -0,0 +1,28 @@
+dnl
+dnl Copyright (c) 2013 Fujitsu Ltd.
+dnl Author: Xiaoguang Wang <[email protected]>
+dnl
+dnl This program is free software;  you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; either version 2 of the License, or
+dnl (at your option) any later version.
+dnl
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY;  without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
+dnl the GNU General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program;  if not, write to the Free Software
+dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+dnl
+dnl
+
+dnl
+dnl LTP_CHECK_FCNTL
+dnl ----------------------------
+dnl
+AC_DEFUN([LTP_CHECK_FCNTL],
+[dnl
+AC_CHECK_TYPES([struct f_owner_ex],[],[],[#include <asm-generic/fcntl.h>])
+])dnl
runtest/syscalls +2 -0
index 489f318..36d7aa4 100644
@@ -255,6 +255,8 @@ fcntl29 fcntl29
 fcntl29_64 fcntl29_64
 fcntl30 fcntl30
 fcntl30_64 fcntl30_64
+fcntl31 fcntl31
+fcntl31_64 fcntl31_64
 
 fdatasync01 fdatasync01
 fdatasync02 fdatasync02
testcases/kernel/syscalls/fcntl/fcntl31.c new file +405 -0

405 lines not on this page · raw message

Signature · 12 lines
1.8.2.1


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list