ltp-testsuite.patch 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. --- ltp-full-20050707-dist/testcases/kernel/syscalls/fmtmsg/Makefile 2005-07-11 16:28:18.000000000 -0600
  2. +++ ltp-full-20050707/testcases/kernel/syscalls/fmtmsg/Makefile 2005-08-02 19:56:11.000000000 -0600
  3. @@ -26,7 +26,7 @@
  4. LOADLIBES+= $(if $(UCLINUX),-lc)
  5. SRCS=$(wildcard *.c)
  6. -TARGETS=$(patsubst %.c,%,$(SRCS))
  7. +TARGETS=#$(patsubst %.c,%,$(SRCS))
  8. all: $(TARGETS)
  9. --- ltp-full-20050707-dist/testcases/kernel/syscalls/getcontext01/Makefile 2005-05-26 14:38:47.000000000 -0600
  10. +++ ltp-full-20050707/testcases/kernel/syscalls/getcontext01/Makefile 2005-08-02 19:56:11.000000000 -0600
  11. @@ -24,7 +24,7 @@
  12. LOADLIBES+= -L../../../../lib -lltp
  13. SRCS=$(wildcard *.c)
  14. -TARGETS=$(patsubst %.c,%,$(SRCS))
  15. +TARGETS=#$(patsubst %.c,%,$(SRCS))
  16. all: $(TARGETS)
  17. --- ltp-full-20050707-dist/testcases/kernel/syscalls/profil/Makefile 2005-07-11 16:28:53.000000000 -0600
  18. +++ ltp-full-20050707/testcases/kernel/syscalls/profil/Makefile 2005-08-02 19:56:11.000000000 -0600
  19. @@ -25,7 +25,7 @@
  20. LOADLIBES+= $(if $(UCLINUX),-lc)
  21. SRCS=$(wildcard *.c)
  22. -TARGETS=$(patsubst %.c,%,$(SRCS))
  23. +TARGETS=#$(patsubst %.c,%,$(SRCS))
  24. all: $(TARGETS)
  25. --- ltp-full-20050707-dist/testcases/kernel/syscalls/pselect/Makefile 2005-05-26 09:35:58.000000000 -0600
  26. +++ ltp-full-20050707/testcases/kernel/syscalls/pselect/Makefile 2005-08-02 19:56:11.000000000 -0600
  27. @@ -24,7 +24,7 @@
  28. LOADLIBES+= -L../../../../lib -lltp
  29. SRCS=$(wildcard *.c)
  30. -TARGETS=$(patsubst %.c,%,$(SRCS))
  31. +TARGETS=#$(patsubst %.c,%,$(SRCS))
  32. all: $(TARGETS)
  33. --- ltp-full-20050707-dist/testcases/kernel/syscalls/swapon/swapon02.c 2005-07-11 16:29:08.000000000 -0600
  34. +++ ltp-full-20050707/testcases/kernel/syscalls/swapon/swapon02.c 2005-08-02 19:56:38.000000000 -0600
  35. @@ -86,9 +86,7 @@
  36. #include <sys/stat.h>
  37. #include <sys/swap.h>
  38. #include <asm/page.h>
  39. -#ifdef OLDER_DISTRO_RELEASE
  40. -#include <linux/swap.h>
  41. -#endif
  42. +#define MAX_SWAPFILES 32
  43. #include <fcntl.h>
  44. #include <pwd.h>
  45. #include <string.h>
  46. @@ -97,10 +95,6 @@
  47. #include "test.h"
  48. #include "usctest.h"
  49. -#ifndef OLDER_DISTRO_RELEASE
  50. -#define MAX_SWAPFILES 32
  51. -#endif
  52. -
  53. static void setup();
  54. static void cleanup();
  55. static int setup01();
  56. --- ltp-full-20050707/testcases/kernel/fs/acls/acl_file_test.c.orig 2005-08-09 01:41:25.000000000 -0600
  57. +++ ltp-full-20050707/testcases/kernel/fs/acls/acl_file_test.c 2005-08-09 01:42:29.000000000 -0600
  58. @@ -52,12 +52,18 @@
  59. }
  60. //s = syscall(237, fd,tok); //fremovexattr
  61. +#ifdef __NR_fremovexattr
  62. s = syscall(__NR_fremovexattr, fd,tok); //fremovexattr
  63. if (s == -1) {
  64. printf ("User unable to remove extended attributes file %s !\n", argv[1]);
  65. printf("errno = %i\n", errno);
  66. rc = 1;
  67. }
  68. +#else
  69. + printf ("User unable to remove extended attributes file %s !\n", argv[1]);
  70. + printf("errno = %i\n", ENOSYS);
  71. + rc = 1;
  72. +#endif
  73. close (fd);
  74. return rc;
  75. --- ltp-full-20050804/testcases/kernel/syscalls/sysfs.orig/sysfs01.c 2005-12-08 18:26:07.000000000 -0700
  76. +++ ltp-full-20050804/testcases/kernel/syscalls/sysfs/sysfs01.c 2005-12-08 18:28:26.000000000 -0700
  77. @@ -72,10 +72,6 @@
  78. #include <unistd.h>
  79. #include <syscall.h>
  80. -#ifndef _syscall2
  81. -#include <linux/unistd.h>
  82. -#endif
  83. -
  84. static void setup();
  85. static void cleanup();
  86. @@ -83,11 +79,7 @@
  87. int TST_TOTAL = 1; /* Total number of test cases. */
  88. extern int Tst_count; /* Test Case counter for tst_* routines */
  89. -#if defined(__ia64__)
  90. #define sysfs(arg1, arg2) syscall(__NR_sysfs, arg1, arg2)
  91. -#else
  92. -_syscall2(long, sysfs, int, option, const char*, fsname);
  93. -#endif
  94. int
  95. main(int ac, char **av)
  96. --- ltp-full-20050804/testcases/kernel/syscalls/sysfs.orig/sysfs02.c 2005-08-04 14:33:06.000000000 -0600
  97. +++ ltp-full-20050804/testcases/kernel/syscalls/sysfs/sysfs02.c 2005-12-08 18:31:00.000000000 -0700
  98. @@ -70,10 +70,6 @@
  99. #include <unistd.h>
  100. #include <syscall.h>
  101. -#ifndef _syscall2
  102. -#include <linux/unistd.h>
  103. -#endif
  104. -
  105. static void setup();
  106. static void cleanup();
  107. @@ -81,11 +77,7 @@
  108. int TST_TOTAL = 1; /* Total number of test cases. */
  109. extern int Tst_count; /* Test Case counter for tst_* routines */
  110. -#if defined(__ia64__)
  111. #define sysfs(arg1, arg2, arg3) syscall(__NR_sysfs, arg1, arg2, arg3)
  112. -#else
  113. -_syscall3(long, sysfs, int, option, unsigned int, arg1, char*, buf);
  114. -#endif
  115. int
  116. main(int ac, char **av)
  117. --- ltp-full-20050804/testcases/kernel/syscalls/sysfs.orig/sysfs03.c 2005-08-04 14:33:06.000000000 -0600
  118. +++ ltp-full-20050804/testcases/kernel/syscalls/sysfs/sysfs03.c 2005-12-08 18:31:27.000000000 -0700
  119. @@ -70,10 +70,6 @@
  120. #include <unistd.h>
  121. #include <syscall.h>
  122. -#ifndef _syscall2
  123. -#include <linux/unistd.h>
  124. -#endif
  125. -
  126. static void setup();
  127. static void cleanup();
  128. @@ -81,11 +77,7 @@
  129. int TST_TOTAL = 1; /* Total number of test cases. */
  130. extern int Tst_count; /* Test Case counter for tst_* routines */
  131. -#if defined(__ia64__)
  132. #define sysfs(arg1) syscall(__NR_sysfs, arg1)
  133. -#else
  134. -_syscall1(long, sysfs, int, option);
  135. -#endif
  136. int
  137. main(int ac, char **av)
  138. --- ltp-full-20050804/testcases/kernel/syscalls/sysfs.orig/sysfs04.c 2005-08-04 14:33:06.000000000 -0600
  139. +++ ltp-full-20050804/testcases/kernel/syscalls/sysfs/sysfs04.c 2005-12-08 18:31:37.000000000 -0700
  140. @@ -73,10 +73,6 @@
  141. #include "test.h"
  142. #include "usctest.h"
  143. -#ifndef _syscall2
  144. -#include <linux/unistd.h>
  145. -#endif
  146. -
  147. #define INVALID_OPTION 100
  148. static void setup();
  149. static void cleanup();
  150. @@ -86,11 +82,7 @@
  151. extern int Tst_count; /* Test Case counter for tst_* routines */
  152. static int exp_enos[] = {EINVAL, 0};
  153. -#if defined(__ia64__)
  154. #define sysfs(arg1) syscall(__NR_sysfs, arg1)
  155. -#else
  156. -_syscall1(long, sysfs, int, option);
  157. -#endif
  158. int
  159. main(int ac, char **av)
  160. --- ltp-full-20050804/testcases/kernel/syscalls/sysfs.orig/sysfs05.c 2005-08-04 14:33:06.000000000 -0600
  161. +++ ltp-full-20050804/testcases/kernel/syscalls/sysfs/sysfs05.c 2005-12-08 18:31:45.000000000 -0700
  162. @@ -74,18 +74,10 @@
  163. #include "test.h"
  164. #include "usctest.h"
  165. -#ifndef _syscall2
  166. -#include <linux/unistd.h>
  167. -#endif
  168. -
  169. static void setup();
  170. static void cleanup();
  171. -#if defined(__ia64__)
  172. #define sysfs(arg1, arg2) syscall(__NR_sysfs, arg1, arg2)
  173. -#else
  174. -_syscall2(long, sysfs, int, option, const char*, fsname);
  175. -#endif
  176. char *TCID = "sysfs05"; /* Test program identifier. */
  177. int TST_TOTAL = 3; /* Total number of test cases. */
  178. --- ltp-full-20050804/testcases/kernel/syscalls/sysfs.orig/sysfs06.c 2005-08-04 14:33:06.000000000 -0600
  179. +++ ltp-full-20050804/testcases/kernel/syscalls/sysfs/sysfs06.c 2005-12-08 18:31:56.000000000 -0700
  180. @@ -75,18 +75,10 @@
  181. #include "test.h"
  182. #include "usctest.h"
  183. -#ifndef _syscall2
  184. -#include <linux/unistd.h>
  185. -#endif
  186. -
  187. static void setup();
  188. static void cleanup();
  189. -#if defined(__ia64__)
  190. #define sysfs(arg1, arg2, arg3) syscall(__NR_sysfs, arg1, arg2, arg3)
  191. -#else
  192. -_syscall3(long, sysfs, int, option, unsigned int, fs_index, char, bad_addr);
  193. -#endif
  194. char *TCID = "sysfs06"; /* Test program identifier. */
  195. int TST_TOTAL = 3; /* Total number of test cases. */