[PATCH v7 12/14] tests/xettimeofday: Skip tests if __NR_gettimeofday syscall isn't defined

Dmitry V. Levin ldv at altlinux.org
Sun Apr 19 22:24:00 UTC 2020


On Fri, Apr 17, 2020 at 09:47:22AM -0700, Alistair Francis wrote:
> New y2038 safe 32-bit architectures don't have the
> __NR_gettimeofday/__NR_settimeofday syscalls, so let's skip the test.
> 
> Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
> ---
>  tests/xettimeofday.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/tests/xettimeofday.c b/tests/xettimeofday.c
> index c0c3e78e..172d7afe 100644
> --- a/tests/xettimeofday.c
> +++ b/tests/xettimeofday.c
> @@ -7,6 +7,9 @@
>   */
>  
>  #include "tests.h"
> +
> +#ifdef __NR_gettimeofday

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


-- 
ldv


More information about the Strace-devel mailing list