* [LTP] [PATCH] thp01: make "true" applet foundable for busybox
@ 2012-11-07 10:03 Barry Song
2012-11-07 11:57 ` Wanlong Gao
0 siblings, 1 reply; 2+ messages in thread
From: Barry Song @ 2012-11-07 10:03 UTC (permalink / raw)
To: Ltp-list; +Cc: workgroup.linux
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 <Barry.Song@csr.com>
---
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) {
--
1.7.0.4
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [LTP] [PATCH] thp01: make "true" applet foundable for busybox
2012-11-07 10:03 [LTP] [PATCH] thp01: make "true" applet foundable for busybox Barry Song
@ 2012-11-07 11:57 ` Wanlong Gao
0 siblings, 0 replies; 2+ messages in thread
From: Wanlong Gao @ 2012-11-07 11:57 UTC (permalink / raw)
To: Barry Song; +Cc: Ltp-list, workgroup.linux
On 11/07/2012 06:03 PM, Barry Song wrote:
> 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 <Barry.Song@csr.com>
Applied, thank you very much Barry.
Wanlong Gao
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-07 12:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07 10:03 [LTP] [PATCH] thp01: make "true" applet foundable for busybox Barry Song
2012-11-07 11:57 ` Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox