summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch')
-rw-r--r--meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch b/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch
new file mode 100644
index 0000000000..310e2d4fa6
--- /dev/null
+++ b/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch
@@ -0,0 +1,78 @@
1Fix building disabled getcontext and profil01 tests for uclibc
2
3Signed-off-by: Khem Raj <raj.khem@gmail.com>
4
5Upstream-Status: Pending
6
7Index: ltp-20110915/testcases/kernel/syscalls/getcontext/getcontext01.c
8===================================================================
9--- ltp-20110915.orig/testcases/kernel/syscalls/getcontext/getcontext01.c 2012-01-19 16:39:24.391012507 -0800
10+++ ltp-20110915/testcases/kernel/syscalls/getcontext/getcontext01.c 2012-01-19 16:39:24.459012510 -0800
11@@ -34,6 +34,10 @@
12 **********************************************************/
13
14 #include <features.h>
15+#include "test.h"
16+#include "usctest.h"
17+char *TCID = "getcontext01"; /* Test program identifier. */
18+
19 #if !defined(__UCLIBC__)
20
21 #include <stdio.h>
22@@ -41,13 +45,9 @@
23 #include <errno.h>
24 #include <ucontext.h>
25
26-#include "test.h"
27-#include "usctest.h"
28-
29 void setup();
30 void cleanup();
31
32-char *TCID = "getcontext01"; /* Test program identifier. */
33 int TST_TOTAL = 1; /* Total number of test cases. */
34
35 int exp_enos[] = { 0 }; /* must be a 0 terminated list */
36@@ -102,4 +102,4 @@
37 {
38 tst_brkm(TCONF, NULL, "system doesn't have getcontext support");
39 }
40-#endif
41\ No newline at end of file
42+#endif
43Index: ltp-20110915/testcases/kernel/syscalls/profil/profil01.c
44===================================================================
45--- ltp-20110915.orig/testcases/kernel/syscalls/profil/profil01.c 2012-01-19 16:39:55.975014036 -0800
46+++ ltp-20110915/testcases/kernel/syscalls/profil/profil01.c 2012-01-19 16:40:23.475015322 -0800
47@@ -41,6 +41,8 @@
48 #endif
49
50 #include <features.h>
51+#include "test.h"
52+char *TCID = "profil01";
53 #ifndef __UCLIBC__
54
55 #ifdef __arm__
56@@ -58,7 +60,6 @@
57 #include <errno.h>
58 #include <sys/types.h>
59 #include <sys/wait.h>
60-#include "test.h"
61 #include "usctest.h"
62 #define FAILED 0
63 #define PASSED 1
64@@ -73,7 +74,6 @@
65 //char progname[]= "profil1()";
66
67 /***** LTP Port *****/
68-char *TCID = "profil01";
69 int local_flag = PASSED;
70 int block_number;
71 FILE *temp;
72@@ -310,4 +310,4 @@
73 /* uClibc does not have profiling support */
74 tst_exit();
75 }
76-#endif
77\ No newline at end of file
78+#endif