[LTP] [PATCH v2 2/2] openat/openat02.c: add a new case to test flags

2014-04-03 Thread gux.f...@cn.fujitsu.com
create a new case to test flags for openat(2): O_APPEND O_CLOEXEC O_LARGEFILE O_NOATIME O_NOFOLLOW O_TRUNC Signed-off-by: Xing Gu --- configure.ac | 1 + m4/ltp-openat.m4 | 25 ++ runtest/syscalls

[LTP] [PATCH v2 1/2] lib/tst_path_has_mnt_flags.c: create a function tst_path_has_mnt_flags()

2014-04-03 Thread gux.f...@cn.fujitsu.com
Create a function tst_path_has_mnt_flags() for checking whether a path is on a system that is mounted with specified flags. Signed-off-by: Xing Gu --- include/test.h | 9 lib/tst_path_has_mnt_flags.c | 99 2 files changed, 108 inse

[LTP] [PATCH v3] lib/tst_path_has_mnt_flags.c: create a function tst_path_has_mnt_flags()

2014-04-08 Thread gux.f...@cn.fujitsu.com
Create a function tst_path_has_mnt_flags() for checking whether a path is on a system that is mounted with specified flags. Signed-off-by: Xing Gu --- include/test.h | 9 + lib/tst_path_has_mnt_flags.c | 79 2 files changed, 88 inse

[LTP] [PATCH v4 1/2] lib/tst_path_has_mnt_flags.c: create a function tst_path_has_mnt_flags()

2014-04-11 Thread gux.f...@cn.fujitsu.com
Create a function tst_path_has_mnt_flags() for checking whether a path is on a system that is mounted with specified flags. Signed-off-by: Xing Gu --- include/test.h | 9 + lib/tst_path_has_mnt_flags.c | 81 2 files changed, 90 inse

[LTP] [PATCH v4 2/2] openat/openat02.c: add a new case to test flags

2014-04-11 Thread gux.f...@cn.fujitsu.com
From: "gux.f...@cn.fujitsu.com" create a new case to test flags for openat(2): O_APPEND O_CLOEXEC O_LARGEFILE O_NOATIME O_NOFOLLOW O_TRUNC Signed-off-by: Xing Gu --- configure.ac | 1 + m4/ltp-openat.m4 | 25 +

[LTP] [PATCH 2/2] rmdir/rmdir02.c: add ELOOP, EROFS and EBUSY error value tests

2014-04-17 Thread gux.f...@cn.fujitsu.com
Signed-off-by: Xing Gu --- testcases/kernel/syscalls/rmdir/rmdir02.c | 92 --- 1 file changed, 85 insertions(+), 7 deletions(-) diff --git a/testcases/kernel/syscalls/rmdir/rmdir02.c b/testcases/kernel/syscalls/rmdir/rmdir02.c index 9ae919a..9d55d76 100644 --- a/test

[LTP] [PATCH 1/2] rmdir/rmdir02.c: cleanup

2014-04-17 Thread gux.f...@cn.fujitsu.com
Delete some useless comments. Use some SAFE_* macros. Move the test body from main() to rmdir_verify(). Signed-off-by: Xing Gu --- testcases/kernel/syscalls/rmdir/rmdir02.c | 406 +++--- 1 file changed, 91 insertions(+), 315 deletions(-) diff --git a/testcases/kernel/sys

[LTP] [PATCH 2/2] renameat/renameat01.c: add ELOOP, EROFS and EMLINK error value tests

2014-04-21 Thread gux.f...@cn.fujitsu.com
Signed-off-by: Xing Gu --- testcases/kernel/syscalls/renameat/renameat01.c | 115 +++- 1 file changed, 113 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/syscalls/renameat/renameat01.c b/testcases/kernel/syscalls/renameat/renameat01.c index bc08477..20526c5 1006

[LTP] [PATCH 1/2] renameat/renameat01.c: cleanup

2014-04-21 Thread gux.f...@cn.fujitsu.com
Add renameat.h to encapsulate renameat syscall. Delete some useless comments. Use some SAFE_* macros. Move the test body from main() to (*testfunc[])(). Signed-off-by: Xing Gu --- configure.ac| 1 + include/lapi/fcntl.h| 4 + m4