Return-Path: Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NV44R-0001uf-Ck for ltp-list@lists.sourceforge.net; Wed, 13 Jan 2010 14:19:39 +0000 Received: from e1.ny.us.ibm.com ([32.97.182.141]) by sfi-mx-3.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NV44P-00064T-20 for ltp-list@lists.sourceforge.net; Wed, 13 Jan 2010 14:19:39 +0000 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by e1.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id o0DEGKvJ027802 for ; Wed, 13 Jan 2010 09:16:20 -0500 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o0DEJToA112228 for ; Wed, 13 Jan 2010 09:19:29 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o0DEJSLE013419 for ; Wed, 13 Jan 2010 12:19:28 -0200 From: Subrata Modak In-Reply-To: <4B46C422.7040303@linux.vnet.ibm.com> References: <4B458B0A.9040304@linux.vnet.ibm.com> <1262864218.12213.38.camel@subratamodak.linux.ibm.com> <4B46C422.7040303@linux.vnet.ibm.com> Date: Wed, 13 Jan 2010 19:49:20 +0530 Message-Id: <1263392360.5591.26.camel@subratamodak.linux.ibm.com> Mime-Version: 1.0 Subject: Re: [LTP] capset01 patch Reply-To: subrata@linux.vnet.ibm.com List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Veerendra C Cc: ltp-list On Fri, 2010-01-08 at 11:05 +0530, Veerendra C wrote: > Hi Subrata > > Including my signature as requested > > Signed-off-by: Veerendra C Thanks Veerendra. Regards-- Subrata > > > Thanks > Veerendra C > > Subrata Modak wrote: > > Can you please Sign-Off this match with your Signature ? > > > > Regards-- > > Subrata > > > > On Thu, 2010-01-07 at 12:49 +0530, Veerendra C wrote: > > > >> Hi > >> Here is a patch/attachment to fix the error number and error message , > >> when the capset() syscall fails. > >> > >> > >> *After applying patch:* > >> capset01 1 TBROK capget() failed: errno=???(38): Function not > >> implemented > >> > >> *Before applying patch:* > >> capset01 1 TBROK capget() failed: TEST_ERRNO=???(0): Success > >> > >> > >> Note: This is in the custom built linux kernel where the capset/capget > >> syscall is not implemented. In normal linux kernel this testcase would > >> just work fine without any errors. > >> * > >> Normal kernel:* > >> capset01 1 TPASS : capset() returned 0 > >> > >> > >> Regards > >> Veerendra C > >> > >> plain text document attachment (capset01.patch) > >> --- testcases/kernel/syscalls/capset.orig/capset01.c 2010-01-06 13:29:07.000000000 +0530 > >> +++ testcases/kernel/syscalls/capset/capset01.c 2010-01-06 13:50:12.000000000 +0530 > >> @@ -89,6 +89,7 @@ static void cleanup(); > >> char *TCID = "capset01"; /* Test program identifier. */ > >> int TST_TOTAL = 1; /* Total number of test cases. */ > >> extern int Tst_count; /* Test Case counter for tst_* routines */ > >> +static int exp_enos[] = { EFAULT, EINVAL, EPERM, 0 }; > >> > >> static struct __user_cap_header_struct header; /* cap_user_header_t is a pointer > >> to __user_cap_header_struct */ > >> @@ -143,6 +144,9 @@ void setup() > >> /* capture signals */ > >> tst_sig(NOFORK, DEF_HANDLER, cleanup); > >> > >> + /* Set up the expected error numbers for -e option */ > >> + TEST_EXP_ENOS(exp_enos); > >> + > >> /* Pause if that option was specified */ > >> TEST_PAUSE; > >> > >> > >> ------------------------------------------------------------------------------ > >> This SF.Net email is sponsored by the Verizon Developer Community > >> Take advantage of Verizon's best-in-class app development support > >> A streamlined, 14 day to market process makes app distribution fast and easy > >> Join now and get one step closer to millions of Verizon customers > >> http://p.sf.net/sfu/verizon-dev2dev > >> _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list > >> > > > > > > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list