Another small patch to complete the test cases for *16.

Put compat_16.h to testcases/kernel/syscalls/geteuid.

Signed-off-by: Masatake YAMATO <[email protected]>
Index: testcases/kernel/syscalls/geteuid/Makefile
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/geteuid/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- testcases/kernel/syscalls/geteuid/Makefile	9 Oct 2009 17:55:55 -0000	1.8
+++ testcases/kernel/syscalls/geteuid/Makefile	23 Oct 2009 11:02:08 -0000
@@ -20,4 +20,7 @@
 
 include $(top_srcdir)/include/mk/testcases.mk
 include $(abs_srcdir)/../utils/compat_16.mk
+
+CPPFLAGS		+= -I$(abs_srcdir)/../utils
+
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
Index: testcases/kernel/syscalls/geteuid/geteuid01.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/geteuid/geteuid01.c,v
retrieving revision 1.5
diff -u -r1.5 geteuid01.c
--- testcases/kernel/syscalls/geteuid/geteuid01.c	23 Mar 2009 13:35:42 -0000	1.5
+++ testcases/kernel/syscalls/geteuid/geteuid01.c	23 Oct 2009 11:02:08 -0000
@@ -116,10 +116,12 @@
 #include "test.h"
 #include "usctest.h"
 
+#include "compat_16.h"
+
 void setup();
 void cleanup();
 
-char *TCID = "geteuid01";	/* Test program identifier.    */
+TCID_DEFINE(geteuid01);	        /* Test program identifier.    */
 int TST_TOTAL = 1;		/* Total number of test cases. */
 extern int Tst_count;		/* Test Case counter for tst_* routines */
 
@@ -161,7 +163,7 @@
 		;
 
 		/* Call geteuid(2) */
-		TEST(geteuid());
+		TEST(GETEUID());
 
 		/* check return code */
 		if (TEST_RETURN < 0) {
/*
 *
 *   Copyright (c) Red Hat Inc., 2009
 *
 *   This program is free software;  you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
 *   the GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program;  if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

/* Author: Masatake YAMATO <[email protected]> */

#ifndef __GETUID_COMPAT_16_H__
#define __GETUID_COMPAT_16_H__


#include "linux_syscall_numbers.h"
#include "compat_uid.h"


#ifdef TST_USE_COMPAT16_SYSCALL

UID_T
GETEUID(void)
{
        return syscall(__NR_geteuid);
}

#else

UID_T
GETEUID(void)
{
        return geteuid();
}

#endif

#endif /* __GETUID_COMPAT_16_H__ */
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to