[PATCH v6 10/13] tests/wait4: Skip tests if __NR_wait4 syscall isn't defined

Dmitry V. Levin ldv at altlinux.org
Wed Apr 1 00:01:58 UTC 2020


On Fri, Mar 20, 2020 at 03:09:36PM -0700, Alistair Francis wrote:
> New y2038 safe 32-bit architectures don't have the __NR_wait4 syscall,
> so let's skip the test.
> 
> Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
> ---
>  tests/wait4.c | 35 ++++++++++++++++++++++-------------
>  1 file changed, 22 insertions(+), 13 deletions(-)
> 
> diff --git a/tests/wait4.c b/tests/wait4.c
> index 29b0cadd..735a27c9 100644
> --- a/tests/wait4.c
> +++ b/tests/wait4.c
> @@ -9,12 +9,15 @@
>   */
>  
>  #include "tests.h"
> -#include <assert.h>
> -#include <signal.h>
> -#include <stdio.h>
> -#include <unistd.h>
> -#include <sys/wait.h>
> -#include <sys/resource.h>
> +
> +#ifdef __NR_wait4

Does it mean that wait4 entry should be moved from linux/32/syscallent.h
to linux/32/syscallent-time32.h?

Otherwise the ifdef you are going to add will stop working
as soon as "scno.h" is included.


-- 
ldv


More information about the Strace-devel mailing list