cleanup: Unify the annotation style and remove Redundant code
PATCH 1/1 cleanup: Unify the annotation style and remove Redundant code
Change 'Description' to 'DESCRIPTION' and change 'Algorithm' to 'ALGORITHM' and remove Redundant tst_reap_children since tst_reap_children has been called in the test skeleton.
--- testcases/kernel/containers/pidns/pidns13.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
testcases/kernel/containers/pidns/pidns13.c +2 -4
@@ -9,12 +9,12 @@*/ /*\ -* [Description] +* [DESCRIPTION] * * The pidns13.c testcase checks container init, for async I/O * triggered by peer namespace process. * -* [Algorithm] +* [ALGORITHM] * * create a pipe in parent namespace * * create two PID namespace containers(cinit1 and cinit2) * * in cinit1, set pipe read end to send SIGUSR1 for asynchronous I/O
@@ -116,8 +116,6 @@ static void run(void)SAFE_CLOSE (pipe_fd[0 ]);SAFE_CLOSE (pipe_fd[1 ]); - -tst_reap_children (); }static struct tst_test test = {
--
2.17.1
PATCH 1/1 cleanup: Unify the annotation style and remove Redundant code
HI Gongyi,
Quoted 3 lines
Change 'Description' to 'DESCRIPTION' and change 'Algorithm' to 'ALGORITHM' and remove Redundant
tst_reap_childrensincetst_reap_childrenhas been called in the test skeleton.
Actually the preferred form is Description (only first letter capitalized), see f5a269142 ("docparse: Unify Description and Algorithm titles"). (Better would be to also update it in tests, which I haven't done).
Thus I'd be for merging only removing tst_reap_children() (good catch).
Kind regards,
Petr
PATCH 1/1 cleanup: Unify the annotation style and remove Redundant code
Hi Gongyi,
Quoted 9 lines
Quoted 3 lines
Change 'Description' to 'DESCRIPTION' and change 'Algorithm' to 'ALGORITHM' and remove Redundant
tst_reap_childrensincetst_reap_childrenhas been called in the test skeleton.Actually the preferred form is Description (only first letter capitalized), see
f5a269142("docparse: Unify Description and Algorithm titles"). (Better would be to also update it in tests, which I haven't done).Thus I'd be for merging only removing
tst_reap_children()(good catch).
Merged just part removing tst_reap_children().
Thanks!
Kind regards,
Petr