From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.74) (envelope-from ) id 1PsVQ4-0001yR-3d for ltp-list@lists.sourceforge.net; Thu, 24 Feb 2011 07:15:24 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.74) id 1PsVQ2-0003Pp-Ia for ltp-list@lists.sourceforge.net; Thu, 24 Feb 2011 07:15:24 +0000 Message-ID: <4D660594.1090804@cn.fujitsu.com> Date: Thu, 24 Feb 2011 15:15:32 +0800 From: Peng Haitao MIME-Version: 1.0 Subject: [LTP] [PATCH] syslog03: fix a bug of if statement 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: Garrett Cooper Cc: ltp-list@lists.sourceforge.net Hi Garrett, Signed-off-by: Peng Haitao --- testcases/kernel/syscalls/syslog/syslog03 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/syscalls/syslog/syslog03 b/testcases/kernel/syscalls/syslog/syslog03 index 8439bd3..bd84628 100755 --- a/testcases/kernel/syscalls/syslog/syslog03 +++ b/testcases/kernel/syscalls/syslog/syslog03 @@ -74,7 +74,7 @@ syslog_case3() fi newvalue4=`grep -c "SYSLOG_CASE3" /var/log/messages` - if [ "x$(( $newvalue4 - $oldvalue4 ))" != 1 ]; then + if [ "x$(( $newvalue4 - $oldvalue4 ))" != "x1" ]; then status_flag=1 fi } -- 1.7.1 -- Best Regards, Peng Haitao ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list