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

List:       ltp-cvs
Subject:    [Ltp-cvs] ltp/testcases/kernel/syscalls/mincore mincore01.c, 1.8,
From:       Subrata <subrata_modak () users ! sourceforge ! net>
Date:       2007-04-25 9:30:45
Message-ID: E1Hgdpp-0002Tk-IT () mail ! sourceforge ! net
[Download RAW message or body]

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


Modified Files:
	mincore01.c 
Log Message:
Fix for Bug no. "1687908"(raised by 'bdubbs'), patch submitted by \
<doug.chapman@hp.com>


Index: mincore01.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/mincore/mincore01.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** mincore01.c	1 Mar 2007 15:56:59 -0000	1.8
--- mincore01.c	25 Apr 2007 09:30:42 -0000	1.9
***************
*** 28,42 ****
   *	test1:
   *		Invoke mincore() when the start address is not multiple of page size.
!  *      EINVAL
!  *  test2: 
!  *      Invoke mincore()when the length has a non-positive value. EINVAL
!  *	test3:
   *		Invoke mincore() when the vector points to an invalid address. EFAULT
!  *	test4:
   *		Invoke mincore() when the starting address + length contained unmapped 
   *		memory. ENOMEM
-  *  test5:
-  *		Invoke mincore() when the length contained memory is not part of file. 
-  *      ENOMEM
   *
   * USAGE:  <for command-line>
--- 28,37 ----
   *	test1:
   *		Invoke mincore() when the start address is not multiple of page size.
!  *		EINVAL
!  *	test2:
   *		Invoke mincore() when the vector points to an invalid address. EFAULT
!  *	test3:
   *		Invoke mincore() when the starting address + length contained unmapped 
   *		memory. ENOMEM
   *
   * USAGE:  <for command-line>
***************
*** 78,85 ****
  static void setup2(void);
  static void setup3(void);
- static void setup4(void);
  
  char *TCID= "mincore01";
! int TST_TOTAL = 4;
  extern int Tst_count;
  
--- 73,79 ----
  static void setup2(void);
  static void setup3(void);
  
  char *TCID= "mincore01";
! int TST_TOTAL = 3;
  extern int Tst_count;
  
***************
*** 102,106 ****
  		  { NULL,0,NULL,EFAULT,setup2 },
  		  { NULL,0,NULL,ENOMEM,setup3 },
- 		  { NULL,0,NULL,ENOMEM,setup4 }
  }; 
  
--- 96,99 ----
***************
*** 202,224 ****
  
  /*
-  * setup4() - performs the setup related to the test4 -
-  * region contained memory which is not part of file.
-  * We pass an anonymously mapped address here.
-  */
- void
- setup4()
- {	
-        char *t;
-        /* Create pointer to invalid address */
-        if( MAP_FAILED == (t = mmap(0,global_len,PROT_READ|PROT_WRITE, \
                MAP_PRIVATE|MAP_ANONYMOUS,0,0)) ) {
-                tst_brkm(TBROK,cleanup,"mmaping anonymous memory failed: \
                %s",strerror(errno));
-        }
- 
-         TC[3].addr = t;	
- 	TC[3].len = global_len;
- 	TC[3].vector = global_vec;
- }
- 
- /*
   * setup() - performs all ONE TIME setup for this test
   */
--- 195,198 ----


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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