From: Jakub Racek <jracek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/syslog02: fix typo (bug)
Date: Fri, 31 Mar 2017 12:03:05 +0200 [thread overview]
Message-ID: <1490954585-16384-1-git-send-email-jracek@redhat.com> (raw)
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
next reply other threads:[~2017-03-31 10:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 10:03 Jakub Racek [this message]
2017-04-03 14:14 ` [LTP] [PATCH] syscalls/syslog02: fix typo (bug) Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1490954585-16384-1-git-send-email-jracek@redhat.com \
--to=jracek@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.