Skip to contentSkip to conversation

syscalls/syslog02: fix typo (bug)

PATCH New Jakub Racek 2 participants 2 messages Mar 31, 2017 – Apr 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/syslog02: fix typo (bug)

If for whatever reason $MAILLOG file doesn't exist, then test of arbitrary log level may fail, since number of grepped messages (oldvalue) isn't set to 0 because of typo.

---
 testcases/kernel/syscalls/syslog/syslog02 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/syslog/syslog02 +1 -1
index 7a55a84..2213ce3 100755
@@ -72,7 +72,7 @@ syslog_case2()
 		if [ -e "$MAILLOG" ]; then
 			oldvalue=`grep -c "syslogtst: mail $level test\." $MAILLOG`
 		else
-			oldvalue1=0
+			oldvalue=0
 		fi
 
 		# syslogtst has to be called with additional level argument(0-7)
Signature · 1 line
1.8.3.1