From: Francesco Rundo <[email protected]>

Added "tst_resm()" call to print the proper LTP error code(TPASS)
in case of the testcase exit with expected result.

The testcase didn't call "tst_resm()" in case of 
exit without error i.e. after that EPERM is correctly raised.
The proper LTP error code, in that case, is TPASS as EPERM
is the expected result.

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