[PATCH v7 13/14] tests/semtimedop: Skip tests if __NR_semtimedop isn't defined

Dmitry V. Levin ldv at altlinux.org
Sun Apr 19 22:26:37 UTC 2020


On Fri, Apr 17, 2020 at 09:47:23AM -0700, Alistair Francis wrote:
> New y2038 safe 32-bit architectures don't have the __NR_semtimedop
> syscall, so let's skip the test.
> 
> Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
> ---
>  tests/semtimedop.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/tests/semtimedop.c b/tests/semtimedop.c
> index 9b929f5b..61a9cc4b 100644
> --- a/tests/semtimedop.c
> +++ b/tests/semtimedop.c
> @@ -6,6 +6,10 @@
>   */
>  
>  #include "tests.h"
> +#include "scno.h"
> +
> +#ifdef __NR_semtimedop

Some architectures like x86 still don't have __NR_semtimedop,
semtimedop is implemented there using __NR_socketcall.

I've applied this patch with the ifdef guard changed to
#if defined __NR_semtimedop || defined __NR_socketcall


-- 
ldv


More information about the Strace-devel mailing list