From: <ro...@us...> - 2003-01-10 18:26:37
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/ioperm In directory sc8-pr-cvs1:/tmp/cvs-serv22582/ioperm Modified Files: ioperm01.c ioperm02.c Log Message: Applied ia32 arch checking patch from Sundar <vr_...@at...> Index: ioperm01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/ioperm/ioperm01.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ioperm01.c 1 Jan 2003 20:50:37 -0000 1.1 +++ ioperm01.c 10 Jan 2003 18:26:33 -0000 1.2 @@ -62,6 +62,11 @@ * -t : Turn on syscall timing. * ****************************************************************/ + +char *TCID = "ioperm01"; /* Test program identifier. */ + +#ifdef __i386__ /* ioperm() is i386 specific */ + #include <errno.h> #include <unistd.h> #include <sys/io.h> @@ -77,7 +82,6 @@ static void setup(); static void cleanup(); -char *TCID = "ioperm01"; /* Test program identifier. */ int TST_TOTAL = 1; /* Total number of test cases. */ extern int Tst_count; /* Test Case counter for tst_* routines */ @@ -172,3 +176,19 @@ tst_exit(); } /* End cleanup() */ + +#else /* __i386__ */ + +#include "test.h" +#include "usctest.h" + +int TST_TOTAL = 0; /* Total number of test cases. */ + +int +main() +{ + tst_resm(TPASS, "LSB v1.3 does not specify ioperm() for this architecture."); + tst_exit(); +} + +#endif /* __i386__ */ Index: ioperm02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/ioperm/ioperm02.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ioperm02.c 1 Jan 2003 20:50:37 -0000 1.1 +++ ioperm02.c 10 Jan 2003 18:26:34 -0000 1.2 @@ -67,6 +67,11 @@ * -t : Turn on syscall timing. * ****************************************************************/ + +char *TCID = "ioperm02"; /* Test program identifier. */ + +#ifdef __i386__ /* ioperm() is i386 specific */ + #include <errno.h> #include <unistd.h> #include <sys/io.h> @@ -86,7 +91,6 @@ static void cleanup1(); static void cleanup(); -char *TCID = "ioperm02"; /* Test program identifier. */ extern int Tst_count; /* Test Case counter for tst_* routines */ static int exp_enos[] = {EINVAL, EPERM, 0}; @@ -240,3 +244,19 @@ tst_exit(); } /* End cleanup() */ + +#else /* __i386__ */ + +#include "test.h" +#include "usctest.h" + +int TST_TOTAL = 0; /* Total number of test cases. */ + +int +main() +{ + tst_resm(TPASS, "LSB v1.3 does not specify ioperm() for this architecture."); + tst_exit(); +} + +#endif /* __i386__ */ |