From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by 235xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1Mxicx-00079r-Lk for ltp-list@lists.sourceforge.net; Tue, 13 Oct 2009 14:45:27 +0000 Received: from e36.co.us.ibm.com ([32.97.110.154]) by 29vjzd1.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1Mxict-0005aI-6Q for ltp-list@lists.sourceforge.net; Tue, 13 Oct 2009 14:45:27 +0000 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e36.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id n9DEhBrR013508 for ; Tue, 13 Oct 2009 08:43:11 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n9DEjAtF042250 for ; Tue, 13 Oct 2009 08:45:11 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n9DEj9tr029387 for ; Tue, 13 Oct 2009 08:45:09 -0600 From: Subrata Modak In-Reply-To: <4ACEE1D4.5000202@cn.fujitsu.com> References: <4ACEE1D4.5000202@cn.fujitsu.com> Date: Tue, 13 Oct 2009 20:14:02 +0530 Message-Id: <1255445042.8438.74.camel@subratamodak.linux.ibm.com> Mime-Version: 1.0 Subject: Re: [LTP] [PATCH] : fix memcg_function_test's bug Reply-To: subrata@linux.vnet.ibm.com List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: liubo Cc: ltp-list@lists.sourceforge.net On Fri, 2009-10-09 at 15:10 +0800, liubo wrote: > testcase_25() uses a wrong "$?" value , > Now use "ret" to record the real "$?" > value for test . > > > Signed-off-by: Liu Bo Thanks. Regards-- Subrata > > --- > 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 > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ 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 Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list