testcase_25() uses a wrong "$?" value , Now use "ret" to record the real "$?" value for test .
Signed-off-by: Liu Bo <[email protected]> --- diff --git a/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh b/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh index ea4c8a2..0f11835 100755 --- a/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh +++ b/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh @@ -398,11 +398,12 @@ testcase_24() testcase_25() { echo -1 > memory.limit_in_bytes 2> /dev/null + ret=$? tst_kvercmp 2 6 31 if [ $? -eq 0 ]; then - result $(( !($? != 0) )) "return value is $?" + result $(( !($ret != 0) )) "return value is $ret" else - result $(( !($? == 0) )) "return value is $?" + result $(( !($ret == 0) )) "return value is $ret" fi } ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
