Thanks Yamato. I will test them and get back to you.

Regards--
Subrata

On Mon, 2008-09-01 at 13:31 +0900, Masatake YAMATO wrote:
> Hi,
> 
> I extended getegid testcase to test getegid16, too.
> 
> Signed-off-by: Masatake YAMATO <[EMAIL PROTECTED]>
> 
> Index: runtest/syscalls
> ===================================================================
> RCS file: /cvsroot/ltp/ltp/runtest/syscalls,v
> retrieving revision 1.211
> diff -c -r1.211 syscalls
> *** runtest/syscalls  27 Aug 2008 12:02:42 -0000      1.211
> --- runtest/syscalls  1 Sep 2008 04:21:19 -0000
> ***************
> *** 264,269 ****
> --- 264,270 ----
>   getdtablesize01 getdtablesize01
>   
>   getegid01 getegid01
> + getegid01_16 getegid01_16
>   
>   geteuid01 geteuid01
>   
> Index: testcases/kernel/syscalls/getegid/Makefile
> ===================================================================
> RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/getegid/Makefile,v
> retrieving revision 1.6
> diff -c -r1.6 Makefile
> *** testcases/kernel/syscalls/getegid/Makefile        21 Aug 2006 06:58:37 
> -0000      1.6
> --- testcases/kernel/syscalls/getegid/Makefile        1 Sep 2008 04:21:59 
> -0000
> ***************
> *** 19,26 ****
>   CFLAGS += -I../../../../include -Wall
>   LDLIBS += -L../../../../lib -lltp
>   
>   SRCS    = $(wildcard *.c)
> ! TARGETS = $(patsubst %.c,%,$(SRCS))
>   
>   all: $(TARGETS)
>   
> --- 19,28 ----
>   CFLAGS += -I../../../../include -Wall
>   LDLIBS += -L../../../../lib -lltp
>   
> + include ../utils/compat_16.mk
> + 
>   SRCS    = $(wildcard *.c)
> ! TARGETS += $(patsubst %.c,%,$(SRCS))
>   
>   all: $(TARGETS)
>   
> Index: testcases/kernel/syscalls/getegid/getegid01.c
> ===================================================================
> RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/getegid/getegid01.c,v
> retrieving revision 1.2
> diff -c -r1.2 getegid01.c
> *** testcases/kernel/syscalls/getegid/getegid01.c     26 May 2006 06:26:39 
> -0000      1.2
> --- testcases/kernel/syscalls/getegid/getegid01.c     1 Sep 2008 04:21:59 
> -0000
> ***************
> *** 121,132 ****
>   
>   
>   
> ! char *TCID="getegid01";             /* Test program identifier.    */
>   int TST_TOTAL=1;            /* Total number of test cases. */
>   extern int Tst_count;               /* Test Case counter for tst_* routines 
> */
>   
>   int exp_enos[]={0};         /* must be a 0 terminated list */
>   
>   int
>   main(int ac, char **av)
>   {
> --- 121,153 ----
>   
>   
>   
> ! TCID_DEFINE(getegid01);             /* Test program identifier.    */
>   int TST_TOTAL=1;            /* Total number of test cases. */
>   extern int Tst_count;               /* Test Case counter for tst_* routines 
> */
>   
>   int exp_enos[]={0};         /* must be a 0 terminated list */
>   
> + 
> + #ifdef TST_USE_COMPAT16_SYSCALL
> + /* __kernel_old_gid_t */
> + #include <asm/posix_types.h>
> + 
> + /* __NR_getegid */
> + #include "linux_syscall_numbers.h"
> + 
> + __kernel_old_gid_t
> + GETEGID(void)
> + {
> +   return syscall(__NR_getegid);
> + }
> + #else
> + gid_t
> + GETEGID(void)
> + {
> +   return getegid();
> + }
> + #endif  /* TST_USE_COMPAT16_SYSCALL */
> + 
>   int
>   main(int ac, char **av)
>   {
> ***************
> *** 165,171 ****
>       ;
>   
>       /* Call getegid(2) */
> !     TEST(getegid( ));
>       
>       /* check return code */
>       if ( TEST_RETURN < 0 ) {
> --- 186,192 ----
>       ;
>   
>       /* Call getegid(2) */
> !     TEST(GETEGID( ));
>       
>       /* check return code */
>       if ( TEST_RETURN < 0 ) {
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to