public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] capset01 patch
@ 2010-01-07  7:19 Veerendra C
  2010-01-07 11:36 ` Subrata Modak
  0 siblings, 1 reply; 4+ messages in thread
From: Veerendra C @ 2010-01-07  7:19 UTC (permalink / raw)
  To: ltp-list

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

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


[-- Attachment #2: capset01.patch --]
[-- Type: text/plain, Size: 835 bytes --]

--- 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;
 


[-- Attachment #3: Type: text/plain, Size: 390 bytes --]

------------------------------------------------------------------------------
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 

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LTP] capset01 patch
  2010-01-07  7:19 [LTP] capset01 patch Veerendra C
@ 2010-01-07 11:36 ` Subrata Modak
  2010-01-08  5:35   ` Veerendra C
  0 siblings, 1 reply; 4+ messages in thread
From: Subrata Modak @ 2010-01-07 11:36 UTC (permalink / raw)
  To: Veerendra C; +Cc: ltp-list

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LTP] capset01 patch
  2010-01-07 11:36 ` Subrata Modak
@ 2010-01-08  5:35   ` Veerendra C
  2010-01-13 14:19     ` Subrata Modak
  0 siblings, 1 reply; 4+ messages in thread
From: Veerendra C @ 2010-01-08  5:35 UTC (permalink / raw)
  To: subrata; +Cc: ltp-list

Hi Subrata

Including my signature as requested

Signed-off-by: Veerendra C<vechandr@in.ibm.com>


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LTP] capset01 patch
  2010-01-08  5:35   ` Veerendra C
@ 2010-01-13 14:19     ` Subrata Modak
  0 siblings, 0 replies; 4+ messages in thread
From: Subrata Modak @ 2010-01-13 14:19 UTC (permalink / raw)
  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<vechandr@in.ibm.com>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-13 14:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07  7:19 [LTP] capset01 patch Veerendra C
2010-01-07 11:36 ` Subrata Modak
2010-01-08  5:35   ` Veerendra C
2010-01-13 14:19     ` Subrata Modak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox