All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/syslog02: fix typo (bug)
@ 2017-03-31 10:03 Jakub Racek
  2017-04-03 14:14 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Racek @ 2017-03-31 10:03 UTC (permalink / raw)
  To: ltp

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.

Signed-off-by: Jakub Racek <jracek@redhat.com>
---
 testcases/kernel/syscalls/syslog/syslog02 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/syslog/syslog02 b/testcases/kernel/syscalls/syslog/syslog02
index 7a55a84..2213ce3 100755
--- a/testcases/kernel/syscalls/syslog/syslog02
+++ b/testcases/kernel/syscalls/syslog/syslog02
@@ -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)
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] [PATCH] syscalls/syslog02: fix typo (bug)
  2017-03-31 10:03 [LTP] [PATCH] syscalls/syslog02: fix typo (bug) Jakub Racek
@ 2017-04-03 14:14 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2017-04-03 14:14 UTC (permalink / raw)
  To: ltp

Hi!
Applied, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-03 14:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-31 10:03 [LTP] [PATCH] syscalls/syslog02: fix typo (bug) Jakub Racek
2017-04-03 14:14 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.