[LTP] [PATCH 2/4] syscalls/kill03, 04: Cleanup && Convert to new library

Li Wang liwang@redhat.com
Thu Aug 20 14:18:42 CEST 2020


Feiyu Zhu <zhufy.jy@cn.fujitsu.com> wrote:

...
> +#include <unistd.h>
> +#include "tst_test.h"
> +
> +static pid_t real_pid, fake_pid, int_min_pid;
> +static void cleanup(void);
> +
> +static struct tcase {
> +       int test_sig;
> +       int exp_errno;
> +       int child_flag;
>

The child_flag field is not necessary, we could prepare a real child in
setup()
and reclaim it after testing via check the real_pid value, that will be
more easily.

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200820/2115494a/attachment.htm>


More information about the ltp mailing list