diff options
author | Dmitry V. Levin <ldv@strace.io> | 2021-03-28 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-03-28 08:00:00 +0000 |
commit | 4e5918e2211416887a896251aef0a38e5ac1c614 (patch) | |
tree | 760435a99b36249a78152bd03b6e98ff05c17df0 /tests/fsopen.c | |
parent | 07429694472e70e297cdc8771481d6218492b6c1 (diff) | |
download | strace-4e5918e2211416887a896251aef0a38e5ac1c614.tar.gz |
tests: remove redundant __NR_* checks for syscallent-common.h syscalls
Assume that all __NR_* macros corresponding to syscalls listed in
syscallent-common.h are properly defined when "scno.h" is included.
* tests/close_range.c: Assume that __NR_close_range is defined.
* tests/faccessat2.c: Assume that __NR_faccessat2 is defined.
* tests/fsconfig.c: Assume that __NR_fsconfig is defined.
* tests/fsmount.c: Assume that __NR_fsmount is defined.
* tests/fsopen.c: Assume that __NR_fsopen is defined.
* tests/fspick.c: Assume that __NR_fspick is defined.
* tests/io_uring_enter.c: Assume that __NR_io_uring_enter is defined.
* tests/io_uring_register.c: Assume that __NR_io_uring_register is
defined.
* tests/io_uring_setup.c: Assume that __NR_io_uring_setup is defined.
* tests/move_mount.c: Assume that __NR_move_mount is defined.
* tests/open_tree.c: Assume that __NR_open_tree is defined.
* tests/openat2.c: Assume that __NR_openat2 is defined.
* tests/pidfd_getfd.c: Assume that __NR_pidfd_getfd is defined.
* tests/pidfd_open.c: Assume that __NR_pidfd_open is defined.
* tests/pidfd_send_signal.c: Assume that __NR_pidfd_send_signal is
defined.
Diffstat (limited to 'tests/fsopen.c')
-rw-r--r-- | tests/fsopen.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/fsopen.c b/tests/fsopen.c index 0527358f1..5906285ac 100644 --- a/tests/fsopen.c +++ b/tests/fsopen.c @@ -10,11 +10,9 @@ #include "tests.h" #include "scno.h" -#ifdef __NR_fsopen - -# include <stdio.h> -# include <stdint.h> -# include <unistd.h> +#include <stdio.h> +#include <stdint.h> +#include <unistd.h> static const char *errstr; @@ -59,9 +57,3 @@ main(void) puts("+++ exited with 0 +++"); return 0; } - -#else - -SKIP_MAIN_UNDEFINED("__NR_fsopen") - -#endif |