[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltp-cvs
Subject:    [Ltp-cvs] ltp/testcases/kernel/syscalls/swapon swapon01.c, 1.4,
From:       Subrata <subrata_modak () users ! sourceforge ! net>
Date:       2007-11-28 9:38:11
Message-ID: E1IxJNC-0003ZN-EB () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/swapon
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv15686/ltp/testcases/kernel/syscalls/swapon


Modified Files:
	swapon01.c swapon02.c swapon03.c 
Log Message:
Report TCONF for swapon/off test when run on tmpfs or nfs, submitted by Kumar Gala \
<galak@kernel.crashing.org>


Index: swapon02.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/swapon/swapon02.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** swapon02.c	28 Aug 2007 07:17:30 -0000	1.28
--- swapon02.c	28 Nov 2007 09:38:09 -0000	1.29
***************
*** 373,379 ****
  
          if(tst_is_cwd_tmpfs()) {
!                 tst_brkm(TBROK, cleanup, "Cannot do swapon on a file located on a \
tmpfs filesystem");  }
  
          /* Pause if that option was specified */
          TEST_PAUSE;
--- 373,383 ----
  
          if(tst_is_cwd_tmpfs()) {
!                 tst_brkm(TCONF, cleanup, "Cannot do swapon on a file located on a \
tmpfs filesystem");  }
  
+ 	if(tst_is_cwd_nfs()) {
+ 		tst_brkm(TCONF, cleanup, "Cannot do swapon on a file located on a nfs \
filesystem"); + 	}
+ 
          /* Pause if that option was specified */
          TEST_PAUSE;

Index: swapon01.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/swapon/swapon01.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** swapon01.c	17 Jan 2005 22:10:10 -0000	1.4
--- swapon01.c	28 Nov 2007 09:38:09 -0000	1.5
***************
*** 159,163 ****
  
  	if(tst_is_cwd_tmpfs()) {
! 		tst_brkm(TBROK, cleanup, "Cannot do swapon on a file located on a tmpfs \
filesystem");  }
  
--- 159,167 ----
  
  	if(tst_is_cwd_tmpfs()) {
! 		tst_brkm(TCONF, cleanup, "Cannot do swapon on a file located on a tmpfs \
                filesystem");
! 	}
! 
! 	if(tst_is_cwd_nfs()) {
! 		tst_brkm(TCONF, cleanup, "Cannot do swapon on a file located on a nfs \
filesystem");  }
  

Index: swapon03.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/swapon/swapon03.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** swapon03.c	28 Aug 2007 07:17:30 -0000	1.1
--- swapon03.c	28 Nov 2007 09:38:09 -0000	1.2
***************
*** 424,430 ****
  
          if(tst_is_cwd_tmpfs()) {
!                 tst_brkm(TBROK, cleanup, "Cannot do swapon on a file located on a \
tmpfs filesystem");  }
  
          /* Pause if that option was specified */
          TEST_PAUSE;
--- 424,434 ----
  
          if(tst_is_cwd_tmpfs()) {
!                 tst_brkm(TCONF, cleanup, "Cannot do swapon on a file located on a \
tmpfs filesystem");  }
  
+ 	if(tst_is_cwd_nfs()) {
+ 		tst_brkm(TCONF, cleanup, "Cannot do swapon on a file located on a nfs \
filesystem"); + 	}
+ 
          /* Pause if that option was specified */
          TEST_PAUSE;


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Ltp-cvs mailing list
Ltp-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic