[LTP] [PATCH] tst_res: save errno at the begin, otherwise it may be rewritten

2009-11-25 Thread Andrew Vagin
it may do fprinf for example. --- lib/tst_res.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/tst_res.c b/lib/tst_res.c index ded3cd6..75fe263 100644 --- a/lib/tst_res.c +++ b/lib/tst_res.c @@ -457,6 +457,7 @@ void tst_flush(void) */ static void tst_print(char

[LTP] [PATCH] clock_settime03: improve message about fail

2009-11-25 Thread Andrew Vagin
--- .../kernel/timers/clock_settime/clock_settime03.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/timers/clock_settime/clock_settime03.c b/testcases/kernel/timers/clock_settime/clock_settime03.c index 7638abd..5026242 100755 --- a/testcases/kernel/

Re: [LTP] [PATCH] clock_settime03: improve message about fail

2009-11-18 Thread Andrew Vagin
On 11/13/2009 06:17 PM, Mike Frysinger wrote: > On Friday 13 November 2009 02:52:20 Andrew Vagin wrote: > >> --- >> .../kernel/timers/clock_settime/clock_settime03.c |5 +++-- >> 1 files changed, 3 insertions(+), 2 deletions(-) >> >> --- a/t

[LTP] [PATCH] clock_settime03: improve message about fail

2009-11-13 Thread Andrew Vagin
--- .../kernel/timers/clock_settime/clock_settime03.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/timers/clock_settime/clock_settime03.c b/testcases/kernel/timers/clock_settime/clock_settime03.c index 7638abd..d60bcf6 100755 --- a/testcases/kerne

[LTP] [PATCH 4/5] fsstress: fix memory leak in fread_d

2009-09-26 Thread Andrew Vagin
(fsstress.c:1757) ==23212==by 0x402368: doproc (fsstress.c:728) ==23212==by 0x401CC1: main (fsstress.c:463) Signed-off-by: Andrew Vagin --- testcases/kernel/fs/fsstress/fsstress.c | 16 +++- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/testcases/kernel/fs/fsstress

[LTP] [PATCH 1/5] fsstress: delete tralling spaces

2009-09-26 Thread Andrew Vagin
Signed-off-by: Andrew Vagin --- testcases/kernel/fs/fsstress/fsstress.c | 36 +++--- 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/testcases/kernel/fs/fsstress/fsstress.c b/testcases/kernel/fs/fsstress/fsstress.c index 1f11f6e..b313b62 100644 --- a

[LTP] [PATCH 2/5] fsstress: use tabs instead of spaces for indentation

2009-09-26 Thread Andrew Vagin
Signed-off-by: Andrew Vagin --- testcases/kernel/fs/fsstress/fsstress.c | 144 +++--- 1 files changed, 72 insertions(+), 72 deletions(-) diff --git a/testcases/kernel/fs/fsstress/fsstress.c b/testcases/kernel/fs/fsstress/fsstress.c index b313b62..5ada3d8 100644 --- a

[LTP] [PATCH 5/5] fsstress: renew flist if clean up test directory

2009-09-26 Thread Andrew Vagin
flist contain all files created by fsstress. If test clean up direcory on each interations that it should reinitilize flist. Signed-off-by: Andrew Vagin --- testcases/kernel/fs/fsstress/fsstress.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/fs

[LTP] [PATCH 3/5] fsstress: fix memory leaks

2009-09-26 Thread Andrew Vagin
freq_table is not changed during test, so this patch moves it from the loop Signed-off-by: Andrew Vagin --- testcases/kernel/fs/fsstress/fsstress.c | 28 +++- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/testcases/kernel/fs/fsstress/fsstress.c b

[LTP] [PATCH 2/3] fsstress: fix memory leak in fread_d

2009-09-26 Thread Andrew Vagin
1. check result from operation open before set flags 2. close descriptor and free path if set flags failed valgrind --leak-check=full --show-reachable=yes ./fsstress -d /home/shpagin/git-archive/ltp/testcases/kernel/fs/fsstress/tmp -l 10 -n 100 ==23212== 1,134 bytes in 108 blocks are definitely

[LTP] [PATCH 1/3] fsstress: fix memory leaks

2009-09-26 Thread Andrew Vagin
==11424== 156 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==11424==at 0x4A0763E: malloc (vg_replace_malloc.c:207) ==11424==by 0x402E4C: make_freq_table (fsstress.c:986) ==11424==by 0x401C26: main (fsstress.c:410) make_freq_table is executed on each iterations, but freq_

[LTP] [PATCH 3/3] fsstress: renew flist if clean up test directory

2009-09-26 Thread Andrew Vagin
flist contain all files created by fsstress. If test clean up direcory on each interations that it should reinitilize flist. --- testcases/kernel/fs/fsstress/fsstress.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/fs/fsstress/fsstress.c b/testca

[LTP] [PATCH] inotify: add warning about bug

2009-03-11 Thread Andrew Vagin
we have many messages about this bug in mail lists. Let's add proper comment in code. --- testcases/kernel/syscalls/inotify/inotify02.c | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) mode change 100644 => 100755 testcases/kernel/containers/netns/container_ftp.pl

[LTP] [PATCH] inotify: add warning about bug

2009-03-10 Thread Andrew Vagin
we have many messages about this bug in mail lists. Let's add proper comment in code. version 2: add more info about bug --- testcases/kernel/syscalls/inotify/inotify02.c | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) mode change 100644 => 100755 testcases/kerne

[LTP] [PATCH] inotify: add warning about bug

2009-03-07 Thread Andrew Vagin
we have many messages about this bug in mail lists. Let's add proper comment in code. --- testcases/kernel/syscalls/inotify/inotify02.c |4 1 files changed, 4 insertions(+), 0 deletions(-) mode change 100644 => 100755 testcases/kernel/containers/netns/container_ftp.pl diff --git a/

Re: [LTP] inotify02 question

2009-03-04 Thread Andrew Vagin
On Wed, Mar 04, 2009 at 10:28:21AM +0100, Francesco RUNDO wrote: > >>> >>> Ok, just to better describe my opinion (I hope without misunderstanding >>> ;-) >>> In the while loop we're analyzing, you rightly process the notified >>> events with different checks.Ok, it is right. >>> >>> My suggest

Re: [LTP] [PATCH] add new testcase for check inotify subsytem.

2008-12-27 Thread Andrew Vagin
sent separte patch for correct our comments. Thanks. On Wed, Dec 24, 2008 at 07:55:58PM -0800, CAI Qian wrote: > Hi, > > > --- On Thu, 12/25/08, Andrew Vagin wrote: > > > From: Andrew Vagin > > Subject: [PATCH] add new testcase for check inotify subsytem. > >

[LTP] [PATCH] add options for block devices and turn on related testcases

2008-12-27 Thread Andrew Vagin
--- runltp | 59 +++-- runtest/syscalls | 14 ++-- 2 files changed, 63 insertions(+), 10 deletions(-) diff --git a/runltp b/runltp index b6e8b35..0cdba31 100755 --- a/runltp +++ b/runltp @@ -107,7 +107,7 @@ usage() [ -D NU

[LTP] [PATCH] add new testcase for check inotify subsytem.

2008-12-27 Thread Andrew Vagin
have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + * Started by Andrew Vagin + * + */ +/* + * NAME + * inotify03 + * + * DESCRIPTION + *

[LTP] [PATCH] inotify: report error in case of get unnecessary events

2008-12-27 Thread Andrew Vagin
and TCONF if the tested kernel has version less than 2.6.13 --- testcases/kernel/syscalls/inotify/inotify01.c |6 +++--- testcases/kernel/syscalls/inotify/inotify02.c |6 +++--- testcases/kernel/syscalls/inotify/inotify03.c |6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) d

Re: [LTP] [PATCH] add options for block devices and turn on related testcases

2008-12-24 Thread Andrew Vagin
On Wed, Dec 24, 2008 at 03:36:21AM -0800, CAI Qian wrote: > Hi, > > > --- On Mon, 12/22/08, Andrew Vagin wrote: > > > From: Andrew Vagin > > Subject: [LTP] [PATCH] add options for block devices and turn on related > > testcases > > To: subr

[LTP] [PATCH] add options for block devices and turn on related testcases

2008-12-24 Thread Andrew Vagin
version 2: correct patch according with coments from CAI Qian. --- runltp | 59 +++-- runtest/syscalls | 14 ++-- 2 files changed, 63 insertions(+), 10 deletions(-) diff --git a/runltp b/runltp index b6e8b35..0cdba31 100755 ---

[LTP] [PATCH] add new testcase for check inotify subsytem.

2008-12-24 Thread Andrew Vagin
have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + * Started by Andrew Vagin + * + */ +/* + * NAME + * inotify03 + * + * DESCRIPTION + *

Re: [LTP] [PATCH] add new testcase for check inotify subsytem.

2008-12-23 Thread Andrew Vagin
On Tue, Dec 23, 2008 at 02:57:16AM -0800, CAI Qian wrote: > Hi, > > > --- On Mon, 12/22/08, Andrew Vagin wrote: > > > From: Andrew Vagin > > Subject: [LTP] [PATCH] add new testcase for check inotify subsytem. > > To: subr...@linux.vnet.ibm.com > > Cc:

[LTP] [PATCH] add options for block devices and turn on related testcases

2008-12-21 Thread Andrew Vagin
--- runltp | 61 +++-- runtest/syscalls | 14 ++-- 2 files changed, 65 insertions(+), 10 deletions(-) diff --git a/runltp b/runltp index b6e8b35..c838c92 100755 --- a/runltp +++ b/runltp @@ -107,7 +107,7 @@ usage() [ -D NU

[LTP] [PATCH] add new testcase for check inotify subsytem.

2008-12-21 Thread Andrew Vagin
have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + * Started by Andrew Vagin + * + */ +/* + * NAME + * inotify03 + * + * DESCRIPTION + *

[LTP] [PATCH] commands/unzip: check exit code of all comands

2008-12-12 Thread Andrew Vagin
From: Andrew Vagin 1. don't redirect all output to /dev/null. It's bad idea, because we can't investigate bugs without error messages. 2. check exit code of command "zip". If it failed, we get error during make install that can't found a zip file. version 2: fixed

[LTP] [PATCH] commands/unzip: check exit code of all comands

2008-12-11 Thread Andrew Vagin
From: Andrew Vagin <[EMAIL PROTECTED]> 1. don't redirect all output to /dev/null. It's bad idea, because we can't investigate bugs without error messages. 2. check exit code of command "zip". If it failed, we get error during make install that can't found a zip

[LTP] [PATCH] fs_bind: correct umount actions

2008-11-24 Thread Andrew Vagin
umount can return error if /etc/mtab link to /proc/mounts $ mount --rbind /tmp/1 /tmp/2 $ mount ... /tmp/1 on /tmp/2 type none (rw,bind) $ mv /etc/mtab{,.orig} $ mount ... /dev/root on /tmp/2 type ext3 (rw,data=ordered) $ umount /tmp/1 umount: /tmp/1: not mounted if umount return error, test_fs_bi

Re: [LTP] [TEST FAILURE] mallocstress testcase is failing on x86_64

2008-11-19 Thread Andrew Vagin
<== which is failing > > I was thinking should we change mem2chunk_chekc() to take care of this > scenario ? > > Will be eager to hear from you please let me know your thoughts > Thanks > Sharyathi > > [EMAIL PROTECTED] wrote: > > Hi, All. > > >

Re: [LTP] [TEST FAILURE] mallocstress testcase is failing on x86_64

2008-11-19 Thread Andrew Vagin
t; p = mem2chunk_check(mem, NULL); <== which is failing > > I was thinking should we change mem2chunk_chekc() to take care of this > scenario ? I don't understand what do you want handle in it. > > Will be eager to hear from you please let me know your thoughts > Th

Re: [LTP] [TEST FAILURE] mallocstress testcase is failing on x86_64

2008-11-12 Thread Andrew Vagin
Hi, All. Rishi, can you attach log from strace -f ./testcases/kernel/mem/mtest07/mallocstress ? > Please find below some problem related to mallocstress testcase failing > on x86_64. Let us know if some of you have encountered this. > > > Rishi Reported: > --

Re: [LTP] [PATCH] inotify: add a check for the header in the Makefile

2008-08-29 Thread Andrew Vagin
On Wed, Aug 27, 2008 at 10:10:21PM +0530, Subrata Modak wrote: > Thanks Andrew for providing this Fix. Here are the results below: > > On the Machine where it was actually creating trouble building: > > For: Linux 2.6.23.13 #1 SMP Wed Jan 9 18:14:28 PST 2008 ia64 GNU/Linux > # gcc --version > gcc

[LTP] [PATCH] inotify: add a check for the header in the Makefile

2008-08-27 Thread Andrew Vagin
that we don't break builds. --- testcases/kernel/syscalls/inotify/Makefile|7 +++ testcases/kernel/syscalls/inotify/inotify01.c |9 +++-- testcases/kernel/syscalls/inotify/inotify02.c |9 +++-- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/testcases/ke

Re: [LTP] [BUILD ERRORS #2] inotify01 for x86_64

2008-08-22 Thread Andrew Vagin
On Thu, Aug 21, 2008 at 08:15:20PM +0530, Subrata Modak wrote: > Hi Andrew, > > inotify01 is introducing compile error on the following x86_64 machine. > This is unexpected as cross compilation of it on other machines earlier > did not yield such failures. Can you please look in to this: > > > 1

Re: [LTP] [PATCH] fix race in mallocstress

2008-06-08 Thread Andrew Vagin
ases/bin/mallocstress > semop: Permission denied sorry, forgot set permission in semget, new patch attached. > > Regards-- > Subrata > > On Sat, 2008-06-07 at 14:02 +0400, Andrew Vagin wrote: >> mallocstress return fail sometimes. >> [EMAIL PROTECTED] mtest07]# ./mal

[LTP] [PATCH] fix race in mallocstress

2008-06-07 Thread Andrew Vagin
mallocstress return fail sometimes. [EMAIL PROTECTED] mtest07]# ./mallocstress -t 30 main(): pthread_create(): Cannot allocate memory [EMAIL PROTECTED] mtest07]# echo $? 255 mallocstress stresses the VMM and C library by spawning N threads which malloc blocks of increasing size until malloc retu

[LTP] fork12 hang up some times

2008-06-06 Thread Andrew Vagin
Hi, all I execute fork12 test and OMM killer begin send SIGKILL to its children and fork return success always. fork12 hang up in this case, so I create the patch (see attach), which check whether someone child killed and if it occur, return number of forked processes. --- /home/shpagin/tmp/ltp-bas

Re: [LTP] 24 LTP test cases failed

2008-06-05 Thread Andrew Vagin
pls, provide more info: full log, ltp version and etc naveen penumala wrote: > hiee, > > Below test cases were failed in my SUSE 10.1 system. could you please > let me know what might be the reason for these failures. > Is it required to install any rpms or any thing. please let me know. > > msgc

Re: [LTP] fs_bind testcases failing

2008-06-05 Thread Andrew Vagin
Matt Helsley пишет: > On Wed, 2008-06-04 at 09:18 +0530, Rishikesh K. Rajak wrote: > >> On Tue, 2008-06-03 at 20:39 +0530, Subrata Modak wrote: >> >> >>> Rishi, >>> >>> I did not see these tests fail on: >>> >> Is it something related to Distro releases? because as you can see i >> r

Re: [LTP] LTP testcase failed.

2008-06-04 Thread Andrew Vagin
Rishikesh K. Rajak пишет: > On Wed, 2008-06-04 at 12:11 +0530, naveen penumala wrote: >> Hi, >> >> Today i'm testing my kernel(2.6.16.21 ) using LTP >> test tool. I found below failures. > > Can you let us know which ltp version you are testing ? and on which > distro OS you are

Re: [LTP] fs_bind testcases failing

2008-06-04 Thread Andrew Vagin
Rishikesh K. Rajak пишет: > On Tue, 2008-06-03 at 20:39 +0530, Subrata Modak wrote: > >> >> Rishi, >> >> I did not see these tests fail on: >> > > Is it something related to Distro releases? because as you can see i > ran on RHEL 4 kernel. + pushd /tmp/sandbox + TCID=move/test01 + declare -r

Re: [LTP] [PATCH] inotify: add new testcases for inotify

2007-05-24 Thread Andrew Vagin
kernel/containers/utsname/README add README file > > I would request you to submit either one "README" or > "OO_Descriptions.txt" placed under "testcases/kernel/syscalls/inotify" > directory. > > Regards-- > Subrata > > Andrew Vagin wro

[LTP] [PATCH] inotify: add new testcases for inotify

2007-05-22 Thread Andrew Vagin
program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + * Started by Andrew Vagin <[EMAIL PROTECTED]> + * + */ +/* + * NAME + * inotify01 + * + * DESCRIPTION + * Check that inotify work for a file + * + * ALG