All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] kill05: Added proper return code (TPASS) if testcase exit without errors.
@ 2011-07-13 14:27 Francesco RUNDO
  2011-07-13 15:33 ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Francesco RUNDO @ 2011-07-13 14:27 UTC (permalink / raw)
  To: ltp-list

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

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

end of thread, other threads:[~2011-07-14 11:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13 14:27 [LTP] [PATCH] kill05: Added proper return code (TPASS) if testcase exit without errors Francesco RUNDO
2011-07-13 15:33 ` 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

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.