From: Francesco Rundo <[email protected]>

        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 <[email protected]>
Signed-off-by: Carmelo Amoroso <[email protected]>
---
 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to