From: Andrew Chen <[email protected]>

Signed-off-by: Andrew Chen <[email protected]>
---
 .../memcg/functional/memcg_function_test.sh        |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git 
a/ltp-full-20101031/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh
 
b/ltp-full-20101031/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh
index 56010ad..c504ed6 100755
--- 
a/ltp-full-20101031/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh
+++ 
b/ltp-full-20101031/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh
@@ -45,6 +45,7 @@ FAIL=1
 
 PAGESIZE=`./memcg_getpagesize`
 HUGEPAGESIZE=`grep Hugepagesize /proc/meminfo | awk '{ print $2 }'`
+[ -z $HUGEPAGESIZE ] && HUGEPAGESIZE=0
 HUGEPAGESIZE=$(( $HUGEPAGESIZE * 1024 ))
 
 cur_id=0
-- 
1.6.5


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to