From d8aada2b9a59f5136af74e7a08202eea767b587b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 24 Jan 2012 09:42:55 -0800 Subject: ltp: Update recipe and fix building on uclibc (From OE-Core rev: 4e8644584aa8826e9cbf9ff0dc23b8c395978013) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- .../ltp/ltp/uclibc-getcontext.patch | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch (limited to 'meta/recipes-extended/ltp/ltp') 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 @@ +Fix building disabled getcontext and profil01 tests for uclibc + +Signed-off-by: Khem Raj + +Upstream-Status: Pending + +Index: ltp-20110915/testcases/kernel/syscalls/getcontext/getcontext01.c +=================================================================== +--- ltp-20110915.orig/testcases/kernel/syscalls/getcontext/getcontext01.c 2012-01-19 16:39:24.391012507 -0800 ++++ ltp-20110915/testcases/kernel/syscalls/getcontext/getcontext01.c 2012-01-19 16:39:24.459012510 -0800 +@@ -34,6 +34,10 @@ + **********************************************************/ + + #include ++#include "test.h" ++#include "usctest.h" ++char *TCID = "getcontext01"; /* Test program identifier. */ ++ + #if !defined(__UCLIBC__) + + #include +@@ -41,13 +45,9 @@ + #include + #include + +-#include "test.h" +-#include "usctest.h" +- + void setup(); + void cleanup(); + +-char *TCID = "getcontext01"; /* Test program identifier. */ + int TST_TOTAL = 1; /* Total number of test cases. */ + + int exp_enos[] = { 0 }; /* must be a 0 terminated list */ +@@ -102,4 +102,4 @@ + { + tst_brkm(TCONF, NULL, "system doesn't have getcontext support"); + } +-#endif +\ No newline at end of file ++#endif +Index: ltp-20110915/testcases/kernel/syscalls/profil/profil01.c +=================================================================== +--- ltp-20110915.orig/testcases/kernel/syscalls/profil/profil01.c 2012-01-19 16:39:55.975014036 -0800 ++++ ltp-20110915/testcases/kernel/syscalls/profil/profil01.c 2012-01-19 16:40:23.475015322 -0800 +@@ -41,6 +41,8 @@ + #endif + + #include ++#include "test.h" ++char *TCID = "profil01"; + #ifndef __UCLIBC__ + + #ifdef __arm__ +@@ -58,7 +60,6 @@ + #include + #include + #include +-#include "test.h" + #include "usctest.h" + #define FAILED 0 + #define PASSED 1 +@@ -73,7 +74,6 @@ + //char progname[]= "profil1()"; + + /***** LTP Port *****/ +-char *TCID = "profil01"; + int local_flag = PASSED; + int block_number; + FILE *temp; +@@ -310,4 +310,4 @@ + /* uClibc does not have profiling support */ + tst_exit(); + } +-#endif +\ No newline at end of file ++#endif -- cgit 1.2.3-korg