From: Cyril H. <su...@li...> - 2012-11-07 11:56:52
|
The branch, master, has been updated via 15c473dadc6fa9cf81e3b7f311a66e130a91da4f (commit) from f8c0e3b80a6436c25201f9f6c6c5b5c954398ef3 (commit) - Log ----------------------------------------------------------------- commit 15c473dadc6fa9cf81e3b7f311a66e130a91da4f Author: Barry Song <Bar...@cs...> Date: Wed Nov 7 18:03:21 2012 +0800 thp01: make "true" applet foundable for busybox Many embedded systems use busybox. busybox only has one binary, so it depends on argv[0] as the applet name to execute right command. in thp01 case, it is "true" command. this fixes the issue thp01 case always reports "applet not found" for embedded systems and make the case pass on those systems using busybox. At the same time, this fix doesn't destory the validation of the test case. Signed-off-by: Barry Song <Bar...@cs...> Signed-off-by: Wanlong Gao <gao...@cn...> ----------------------------------------------------------------------- Summary of changes: testcases/kernel/mem/thp/thp01.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/mem/thp/thp01.c b/testcases/kernel/mem/thp/thp01.c index dec6c24..fbb814e 100644 --- a/testcases/kernel/mem/thp/thp01.c +++ b/testcases/kernel/mem/thp/thp01.c @@ -81,7 +81,8 @@ int main(int argc, char **argv) case 0: memset(arg, 'c', length - 1); arg[length - 1] = '\0'; - for (i = 0; i < ARRAY_SZ - 1; i++) + array[0] = "true"; + for (i = 1; i < ARRAY_SZ - 1; i++) array[i] = arg; array[ARRAY_SZ - 1] = NULL; if (setrlimit(RLIMIT_STACK, &rl) == -1) { hooks/post-receive -- ltp |