[LTP] [PATCH] waitpid01: Test all standard deadly signals

Petr Vorel pvorel@suse.cz
Tue Jan 30 18:22:43 CET 2024


Hi Martin,

nice work.

Reviewed-by: Petr Vorel <pvorel@suse.cz>

...
> +++ b/testcases/kernel/syscalls/waitpid/waitpid01.c
> @@ -5,25 +5,57 @@
>   * Copyright (c) 2018 Cyril Hrubis <chrubis@suse.cz>

Very nice cleanup, you deserve copyright, right?
 * Copyright (C) 2024 SUSE LLC <mdoucha@suse.cz>
>   */

> Extend waitpid01 to test all standard signals that kill the target
> process unless caught. Also remove waitpid02 since testing SIGFPE
> in waitpid01 makes it redundant.
> +static int testcase_list[] = {
> +	SIGABRT,
> +	SIGALRM,
> +	SIGBUS,
> +	SIGFPE,
> +	SIGHUP,
> +	SIGILL,
> +	SIGINT,
> +	SIGKILL,
> +	SIGPIPE,
> +	SIGPOLL,
> +	SIGPROF,
> +	SIGQUIT,
> +	SIGSEGV,
> +	SIGSYS,
> +	SIGTERM,
> +	SIGTRAP,
> +	SIGVTALRM,
> +	SIGXCPU,
> +	SIGXFSZ
> +};

I suppose you ignored from the list of signals in man signal(7) these with
action "Core" "Term" unless without standard ("-"), right?
So user defined signals (SIGUSR1, SIGUSR2) does not make sense to test?

Kind regards,
Petr


More information about the ltp mailing list