All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francesco RUNDO <francesco.rundo@st.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] kill05: Added proper return code (TPASS) if testcase exit without errors.
Date: Wed, 13 Jul 2011 16:27:31 +0200	[thread overview]
Message-ID: <1310567251-20343-1-git-send-email-no> (raw)

From: Francesco Rundo <francesco.rundo@st.com>

	Added kill05 TPASS exit code.

The testcase didn't return any retrun code in case of 
exit without errors i.e. in case of EPERM is correctly 
raised by the system.

Signed-off-by: Francesco Rundo <francesco.rundo@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
---
 testcases/kernel/syscalls/kill/kill05.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/testcases/kernel/syscalls/kill/kill05.c b/testcases/kernel/syscalls/kill/kill05.c
index fe34788..23fac0a 100644
--- a/testcases/kernel/syscalls/kill/kill05.c
+++ b/testcases/kernel/syscalls/kill/kill05.c
@@ -126,6 +126,8 @@ int main(int ac, char **av)
 		tst_resm(TBROK|TERRNO, "waitpid failed");
 	else if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
 		tst_resm(TFAIL, "child exited abnormally");
+	else
+		tst_resm(TPASS, "received expected errno(EPERM)");
 	cleanup();
 	tst_exit();
 }
-- 
1.7.4.4


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

             reply	other threads:[~2011-07-13 14:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-13 14:27 Francesco RUNDO [this message]
2011-07-13 15:33 ` [LTP] [PATCH] kill05: Added proper return code (TPASS) if testcase exit without errors Cyril Hrubis
     [not found]   ` <000c01cc41f3$bf4c0370$3de40a50$@rundo@st.com>
2011-07-14 10:32     ` Cyril Hrubis
     [not found]       ` <000d01cc421a$607dc5a0$217950e0$@rundo@st.com>
2011-07-14 11:56         ` 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=1310567251-20343-1-git-send-email-no \
    --to=francesco.rundo@st.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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.