Skip to contentSkip to conversation

syslog03: fix a bug of if statement

PATCH In review Peng Haitao 2 participants 2 messages Feb 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syslog03: fix a bug of if statement

Hi Garrett,

---
 testcases/kernel/syscalls/syslog/syslog03 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/kernel/syscalls/syslog/syslog03 +1 -1
index 8439bd3..bd84628 100755
@@ -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
 }
Signature · 17 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw
Quoted 3 lines · Peng Haitao

Hi Garrett,

Committed -- thanks!
-Garrett

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list