[LTP] [PATCHv2 2/3] pidns16: modified test results

Monson Shao
2012-12-26T08:49:14Z

The test should result TFAIL if child is signalled from unexpected pid,
instead of TBROK. The same as TPASS/TINFO .

Signed-off-by: Monson Shao <jshao@redhat.com>
---
testcases/kernel/containers/pidns/pidns16.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testcases/kernel/containers/pidns/pidns16.c b/testcases/kernel/containers/pidns/pidns16.c
index 04a1641..debc8d2 100644
--- a/testcases/kernel/containers/pidns/pidns16.c
+++ b/testcases/kernel/containers/pidns/pidns16.c
@@ -53,7 +53,7 @@
#define PARENT_PID 0

char *TCID = "pidns16";
-int TST_TOTAL = 1;
+int TST_TOTAL = 3;
pid_t globalpid;

/*
@@ -87,10 +87,10 @@ void child_signal_handler(int sig, siginfo_t * si, void *unused)
}

if (si->si_pid == expected_pid)
- tst_resm(TINFO, "child is signalled from expected pid %d",
+ tst_resm(TPASS, "child is signalled from expected pid %d",
expected_pid);
else
- tst_resm(TBROK, "child is signalled from unexpected pid %d,"
+ tst_resm(TFAIL, "child is signalled from unexpected pid %d,"
" expecting pid %d", si->si_pid, expected_pid);

c++;
--
1.7.11.7