[PATCH v7 11/14] tests/wait4: Skip tests if __NR_wait4 syscall isn't defined

Dmitry V. Levin ldv at altlinux.org
Sun Apr 19 22:23:03 UTC 2020


On Fri, Apr 17, 2020 at 09:47:21AM -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

Applied with additional #include "scno.h" required when __NR_* are used.


-- 
ldv


More information about the Strace-devel mailing list