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

List:       ltp-cvs
Subject:    [Ltp-cvs] ltp/testcases/kernel/syscalls/capset capset01.c,1.5,1.6
From:       Robert Williamson <robbiew () users ! sourceforge ! net>
Date:       2005-01-17 22:15:37
Message-ID: E1Cqf9u-00073F-Cv () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/capset
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26897

Modified Files:
	capset01.c 
Log Message:
Applied patch from Ricky Ng-Adam:
================================
This patch gives an hint to the probable solution if this test fails:

$ sudo ./capset01
capset01    1  FAIL  :  Test Failed, capset() returned -1, errno = 1 : 
Operation not permitted. Maybe you need to do `modprobe capability`?
$ sudo modprobe capability
$ sudo ./capset01
capset01    1  PASS  :  capset() returned 0


Index: capset01.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/capset/capset01.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** capset01.c	2 Oct 2003 17:38:04 -0000	1.5
--- capset01.c	17 Jan 2005 22:15:33 -0000	1.6
***************
*** 62,65 ****
--- 62,69 ----
   *				-P x : Pause for x seconds between iterations.
   *				-t   : Turn on syscall timing.
+  *
+  * CHANGES:
+  *  2005/01/01: add an hint to a possible solution when test fails
+  *              - Ricky Ng-Adam <rngadam@yahoo.com>
   ****************************************************************/
  #include <unistd.h>
***************
*** 124,129 ****
  		} else {
  			tst_resm(TFAIL, "Test Failed, capset()"
! 				 " returned %d, errno = %d : %s", TEST_RETURN,
! 				 TEST_ERRNO, strerror(TEST_ERRNO));
  		} 
  	}	/* End for TEST_LOOPING */
--- 128,135 ----
  		} else {
  			tst_resm(TFAIL, "Test Failed, capset()"
! 				 " returned %d, errno = %d : %s."
! 				 " Maybe you need to do `modprobe capability`?",
! 				 TEST_RETURN, TEST_ERRNO, strerror(TEST_ERRNO)
! 				 );
  		} 
  	}	/* End for TEST_LOOPING */



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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