[LTP] Problems compiling

2014-04-11 Thread Mats Liljegren
I recently updated my master branch of my ltp git repository, but I now have a compile error: make[6]: Entering directory `/nfs/hosts/sestonas06/homes/mlil/git/ltp/testcases/kernel/mem/lib' make[6]: ../../../../../testcases/kernel/mem/lib/Makefile: No such file or directory Anyone else having t

Re: [LTP] [PATCH v2] pipeio/pipeio.c: cleanup

2014-04-11 Thread Xiaoguang Wang
Hi, On 04/10/2014 07:27 PM, Jan Stancek wrote: > >> +static int Nchildcomplete; > I'd suggest sig_atomic_t here. Yes, it should be. > >> + >> +static int error; >> +static int count; >> +static int num_writers = 1; /* number of writers */ >> +static int num_writes = 1; /* number of writes per chi

[LTP] [PATCH v2 1/2] lib/tst_fs_has_free.c: add tst_fs_has_free() to determine filesystem's free space

2014-04-11 Thread Xiaoguang Wang
The existing lib/tst_cwd_has_free.c only determines the filesystem, which the current directory is in. And I think tst_cwd_has_free() is not entirely correct. See this code in tst_cwd_has_free(): return ((float)sf.f_bfree) / (1024 / sf.f_bsize) >= required_kib ? 1 : 0; if s

[LTP] [PATCH v2 2/2] tools/apicmd: add tst_fs_has_free

2014-04-11 Thread Xiaoguang Wang
Signed-off-by: Xiaoguang Wang --- tools/apicmds/.gitignore | 1 + tools/apicmds/Makefile| 2 +- tools/apicmds/ltpapicmd.c | 26 ++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/tools/apicmds/.gitignore b/tools/apicmds/.gitignore index 0c1a896..0ac3e

[LTP] Cgroup_fj_stress tests are failing due to low memory

2014-04-11 Thread Madan
cgroup_fj stress.sh is failing for the following call stress6 1 2 2 2 is failing due to low memory !! -bash-4.2# uname -a Linux mcptestp72.austin.ibm.com 3.10.23-1100.pkvm2_1.1.ppc64 #1 SMP Wed Mar 5 21:23:43 CST 2014 ppc64 ppc64 ppc64 GNU/Linux -bash-4.2# free -m total u

Re: [LTP] [PATCH 2/2] testcases/lib/misc.sh: add tst_fs_has_free function

2014-04-11 Thread Xiaoguang Wang
Hi, On 04/10/2014 07:13 PM, chru...@suse.cz wrote: > Hi! >> Create misc.sh to place miscellaneous functions, which will be >> useful for tests written in shell but do not have a proper place >> to place. >> >> Currenly add tst_fs_has_free(), which will check if the mounted >> file system has enoug

[LTP] [PATCH] configure: add configure check for GCC -Wold-style-definition

2014-04-11 Thread Alexey Kodanev
Signed-off-by: Alexey Kodanev --- configure.ac|1 + include/mk/config.mk.in |2 +- m4/ltp-gcc_option.m4| 37 + 3 files changed, 39 insertions(+), 1 deletions(-) create mode 100644 m4/ltp-gcc_option.m4 diff --git a/configure.ac b/conf

Re: [LTP] ltplite test case crashes

2014-04-11 Thread Jan Stancek
- Original Message - > From: "Mats Liljegren" > To: chru...@suse.cz > Cc: ltp-list@lists.sourceforge.net > Sent: Friday, 11 April, 2014 10:59:53 AM > Subject: Re: [LTP] ltplite test case crashes > > On Thu, 10 Apr 2014 18:32:45 +0200 > wrote: > > > Hi! > > > I tried out the test case

Re: [LTP] ltplite test case crashes

2014-04-11 Thread Mats Liljegren
On Thu, 10 Apr 2014 18:32:45 +0200 wrote: > Hi! > > I tried out the test case ltplite just for fun, and it crashed. The > > last part of it was: > > > > gf151 TPASS : Test passed > > <<>> > > initiation_status="ok" > > duration=14 termination_type=exited termination_id=0 corefile=no >

[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 ++ runtest/s

[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] lib, tools, pan: old-style function definition fixes

2014-04-11 Thread Stanislav Kholmanskikh
No functional changes. No "cleanup". Just fixes for "old-style function definition" compile warnings. Signed-off-by: Stanislav Kholmanskikh --- lib/datapid.c | 13 ++--- lib/file_lock.c| 12 ++-- lib/forker.c | 14 ++ lib/parse_opts.c |2 +-