From: <ro...@us...> - 2003-04-07 21:42:22
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/syslog In directory sc8-pr-cvs1:/tmp/cvs-serv31869/testcases/kernel/syscalls/syslog Modified Files: syslog10 Log Message: Applied Dan Kegel's `ash` compatibility patch. Index: syslog10 =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/syslog/syslog10,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- syslog10 7 Apr 2003 18:54:06 -0000 1.4 +++ syslog10 7 Apr 2003 21:42:17 -0000 1.5 @@ -60,14 +60,14 @@ allow2=`grep -c "syslogtst:10 error level is logged" /var/log/messages` donot_allow2=`grep -c "syslogtst:10 warning level not to be logged" /var/log/messages` - (( diff1=$allow2 - $allow1 )) + diff1=$(( $allow2 - $allow1 )) if [ $diff1 -ne 1 ]; then echo "Expected message is not logged...." status_flag=1 return fi - (( diff2=$donot_allow2 - $donot_allow1 )) + diff2=$(( $donot_allow2 - $donot_allow1 )) if [ $diff2 -ne 0 ]; then echo "Unexpected message is logged..." status_flag=1 |