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 <[email protected]>
---
 testcases/kernel/containers/pidns/pidns16.c | 4 ++--
 1 个文件被修改,插入 2 行(+),删除 2 行(-)

diff --git a/testcases/kernel/containers/pidns/pidns16.c 
b/testcases/kernel/containers/pidns/pidns16.c
index 9a1219a..0c54acf 100644
--- a/testcases/kernel/containers/pidns/pidns16.c
+++ b/testcases/kernel/containers/pidns/pidns16.c
@@ -84,9 +84,9 @@ void child_signal_handler(int sig, siginfo_t * si, void 
*unused)
        }
 
        if (si->si_pid == expected_pid)
-               tst_resm(TINFO, "child is signalled from pid %d", expected_pid);
+               tst_resm(TPASS, "child is signalled from 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


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to