Re: [LTP] [PATCH v2 1/2] wait/wait02: cleanup

2014-06-23 Thread Jan Stancek
- Original Message - > From: "Zeng Linggang" > To: "Jan Stancek" > Cc: "ltp-list" > Sent: Monday, 23 June, 2014 4:37:45 AM > Subject: [PATCH v2 1/2] wait/wait02: cleanup > > * Delete some useless commtents and variable. > > * Some cleanup. > > Signed-off-by: Zeng Linggang Series

[LTP] [PATCH 2/2] pan/ltp-pan.c: add statistics about not fully tested testcases

2014-06-23 Thread Xiaoguang Wang
Currently numbers of testcases in LTP will return TCONF when they are not appropriate to run. But when users execute './runltp' to run the default test suite towards an linux distribution or upstream kernel, if testcases return TCONF, ultimately they will print TPASS to users, then users will not k

[LTP] [PATCH 1/2] pan/ltp-pan.c: fix compilation warnings

2014-06-23 Thread Xiaoguang Wang
Delete the useless 'char *av[2];' definition. Fix the 'ignoring return value of read(2)' compilation warnings. Signed-off-by: Xiaoguang Wang --- pan/ltp-pan.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pan/ltp-pan.c b/pan/ltp-pan.c index 6a1a797..c36a9ee 100644

[LTP] fstatfs02 issue on mips64

2014-06-23 Thread Ajoymon Joseph
Hi, I am testing mips64 with LTP. The problem is with fstatfs02.c file. The test case was failing in my particular arch. For debugging purpose I write the same code and executed. ret = fstatfs( -1,&buf ); printf("Retrun value =%d, errornumber %d EBADF is %d %s FD %d pointer %p \n

[LTP] [PATCH] vmsplice/vmsplice02.c: add EBADF and EINVAL error value tests

2014-06-23 Thread Xing Gu
Signed-off-by: Xing Gu --- runtest/syscalls| 1 + testcases/kernel/syscalls/.gitignore| 1 + testcases/kernel/syscalls/vmsplice/vmsplice02.c | 167 3 files changed, 169 insertions(+) create mode 100644 testcases/kernel/sysc

Re: [LTP] fstatfs02 issue on mips64

2014-06-23 Thread Jan Stancek
- Original Message - > From: "Ajoymon Joseph" > To: ltp-list@lists.sourceforge.net > Sent: Friday, 20 June, 2014 3:41:06 PM > Subject: [LTP] fstatfs02 issue on mips64 > > > > Hi, > > I am testing mips64 with LTP. The problem is with fstatfs02.c file. The test > case was failing in my

Re: [LTP] fstatfs02 issue on mips64

2014-06-23 Thread chrubis
Hi! > I am testing mips64 with LTP. The problem is with fstatfs02.c file. > The test case was failing in my particular arch. For debugging purpose > I write the same code and executed. > > ret = fstatfs( -1,&buf ); > printf("Retrun value =%d, errornumber %d EBADF is %d %s FD %d pointer %p > \n"

Re: [LTP] [PATCH] Consistently use tst_require_root() for root user check in syscalls.

2014-06-23 Thread chrubis
Hi! Nice cleanup :) Pushed, thanks. -- Cyril Hrubis chru...@suse.cz -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast

Re: [LTP] fstatfs02 issue on mips64

2014-06-23 Thread Ajoymon Joseph
Hi jan, As you mentioned I checked the strace output. I was not knowing how to analyze it. so I compared strace in a normal pc and my test machine. I saw a strange thing. rt_sigaction(SIGPWR, {0x403b30, [], SA_RESTORER|SA_RESTART, 0x38e7a329a0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGSYS, {0

Re: [LTP] [PATCH 1/2] pan/ltp-pan.c: fix compilation warnings

2014-06-23 Thread chrubis
Hi! > static long cmdno = 0; > int errpipe[2]; /* way to communicate to parent that the tag */ > char errbuf[1024]; /* didn't actually start */ > + int ret; > > /* Try to open the file that will be stdout for the test */ > if (test_out_dir) { > @@ -

Re: [LTP] fstatfs02 issue on mips64

2014-06-23 Thread chrubis
Hi! > I am not seeing fstatfs call itself when comparing the system call. I > hope this is the reason? That is strange but I would not call this to be the reason for the test fail. > Also fstatfs02 was working fine. Only fstatfs02_64 was having the > issue. I saw in ../utils/newer_64.mk makefile.

Re: [LTP] fstatfs02 issue on mips64

2014-06-23 Thread Ajoymon Joseph
Hi, Same issue is happening with statfs02_64. In normal system statfs call is there. chown("/tmp/staQ9BKAG", 4294967295, 0) = 0 chmod("/tmp/staQ9BKAG", 0777) = 0 chdir("/tmp/staQ9BKAG") = 0 creat("testfile.21255", 0444) = 3 mmap(NULL, 1, PROT_NONE, MAP_PRIVATE

Re: [LTP] fstatfs02 issue on mips64

2014-06-23 Thread Jan Stancek
- Original Message - > From: "Ajoymon Joseph" > To: "Jan Stancek" > Cc: ltp-list@lists.sourceforge.net > Sent: Monday, 23 June, 2014 3:26:55 PM > Subject: RE: [LTP] fstatfs02 issue on mips64 > > I am not seeing fstatfs call itself when comparing the system call. I hope > this is the re

Re: [LTP] [PATCH 2/2] pan/ltp-pan.c: add statistics about not fully tested testcases

2014-06-23 Thread chrubis
Hi! > Currently numbers of testcases in LTP will return TCONF when they are not > appropriate to run. But when users execute './runltp' to run the default > test suite towards an linux distribution or upstream kernel, if testcases > return TCONF, ultimately they will print TPASS to users, then user

Re: [LTP] fstatfs02 issue on mips64

2014-06-23 Thread chrubis
Hi! > statfs is not there in strace output. Can you please tell me what can be the > reason for strace not showing those functions? No idea :( Without carefull analysis this can range from missing implementation in strace to bugs in strace implementation. -- Cyril Hrubis chru...@suse.cz

Re: [LTP] fstatfs02 issue on mips64

2014-06-23 Thread chrubis
Hi! > > statfs is not there in strace output. Can you please tell me what can be > > the reason for strace not showing those functions? > > No idea :( > > Without carefull analysis this can range from missing implementation in > strace to bugs in strace implementation. Or could even mean that

Re: [LTP] [PATCH V2 3/3] ltp_rt_sigaction.h: added SPARC support

2014-06-23 Thread chrubis
Hi! Whole patchset looks good to me, acked. -- Cyril Hrubis chru...@suse.cz -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Sour

Re: [LTP] [PATCH RFC] testscripts/network: uniform network parameters

2014-06-23 Thread chrubis
Hi! > diff --git a/testscripts/network.sh b/testscripts/network.sh > new file mode 100755 > index 000..0b89c8e > --- /dev/null > +++ b/testscripts/network.sh > @@ -0,0 +1,53 @@ > +#!/bin/sh > + > +# Network Test Parameters > +# > +# ---* THESE MUST BE SET FOR CORRECT OPERATION *--- > +

Re: [LTP] [PATCH] fs/ext4-new-features: fix wrong test point when running ext4-persist-prealloc

2014-06-23 Thread chrubis
Hi! > >>ret=1 > >> > >> + temp_tmpdir=$TMPDIR > >> + export TMPDIR=mnt_point > >>for ((i = 1; i <= 3; i++)) > >>{ > >>if ! command -v fallocate0${i} > /dev/null 2>&1; then > >> @@ -63,6 +65,7 @@ ext4_test_persist_prealloc() > >>return > >>

Re: [LTP] fstatfs02 issue on mips64

2014-06-23 Thread Ajoymon Joseph
Hi jan, I was able to reproduce the issue with sample program. Program was: 1 #include 2 #include 3 #include 4 #include 5 6 int main() 7 { 8 int ret; 9 ret = fstatfs(-1, NULL); 10 printf("return fstatfs %d\n ",ret); 11 return 0; 12 } 13 C