diff options
author | Dmitry V. Levin <ldv@strace.io> | 2021-06-02 09:33:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-06-02 09:33:00 +0000 |
commit | d19ed9a0f2867e1af543d06987a1e21b316e0daa (patch) | |
tree | d34078a7c232481dbf383bf32a4f58c17c968162 /tests/timer_create.c | |
parent | 5a0e37e45a9e28498d2c48d685f0458d752ba101 (diff) | |
download | strace-d19ed9a0f2867e1af543d06987a1e21b316e0daa.tar.gz |
tests: assume __NR_timer_create is defined
timer_create syscall entries are present in syscallent files for all
supported architectures.
* tests/timer_create.c: Assume __NR_timer_create is defined.
* tests/timer_xettime.c: Likewise.
Diffstat (limited to 'tests/timer_create.c')
-rw-r--r-- | tests/timer_create.c | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/tests/timer_create.c b/tests/timer_create.c index 1059a01d8..af91da0d3 100644 --- a/tests/timer_create.c +++ b/tests/timer_create.c @@ -1,5 +1,5 @@ /* - * This file is part of timer_create strace test. + * Check decoding of timer_create syscall. * * Copyright (c) 2015-2018 Dmitry V. Levin <ldv@strace.io> * Copyright (c) 2015-2021 The strace developers. @@ -11,13 +11,11 @@ #include "tests.h" #include "scno.h" -#ifdef __NR_timer_create - -# include <stdio.h> -# include <signal.h> -# include <time.h> -# include <unistd.h> -# include "sigevent.h" +#include <stdio.h> +#include <signal.h> +#include <time.h> +#include <unistd.h> +#include "sigevent.h" int main(void) @@ -80,9 +78,9 @@ main(void) sev.sigev_un.sigev_thread.attribute, tid[2]); -# ifndef SIGEV_THREAD_ID -# define SIGEV_THREAD_ID 4 -# endif +#ifndef SIGEV_THREAD_ID +# define SIGEV_THREAD_ID 4 +#endif sev.sigev_notify = SIGEV_THREAD_ID; sev.sigev_un.tid = getpid(); if (syscall(__NR_timer_create, CLOCK_MONOTONIC, &sev, &tid[3])) @@ -99,9 +97,3 @@ main(void) puts("+++ exited with 0 +++"); return 0; } - -#else - -SKIP_MAIN_UNDEFINED("__NR_timer_create") - -#endif |