[LTP] [PATCH] container: use tst_record_childstatus() in userns

2015-08-07 Thread Yuan Sun
Signed-off-by: Yuan Sun --- testcases/kernel/containers/userns/userns02.c | 14 +--- testcases/kernel/containers/userns/userns03.c | 24 ++--- testcases/kernel/containers/userns/userns04.c | 31 --- 3 files changed, 7 insertions(+), 62 deletions(-)

[LTP] [PATCH] iptables/iptables_tests: Some cleanup

2015-08-07 Thread Cui Bixuan
* Save the iptables before the testcase and restore it after the testcase * Add lib function 'cmd_test' for test01 * Add remove_rule and remove_all_rules for test to flush the rules * Delete the needless check(grep -c Chain and grep "100% packet loss") in test01 and test02 Signed-off-by: Cui Bix

[LTP] [PATCH] Add tst_wait_record_childstatus function.

2015-08-07 Thread Yuan Sun
Signed-off-by: Yuan Sun --- doc/test-writing-guidelines.txt | 7 +++--- include/test.h| 2 ++ lib/tst_res.c | 31 +++ testcases/kernel/containers/userns/userns01.c | 13 ++- 4 files cha

[LTP] [PATCH V2] container: new testcase pidns32

2015-08-07 Thread Yuan Sun
Kernel imposes a limit of 32 nested levels of pid namespaces. Signed-off-by: Yuan Sun --- runtest/containers | 1 + testcases/kernel/containers/pidns/.gitignore | 1 + testcases/kernel/containers/pidns/pidns32.c | 96 3 files changed, 98