summaryrefslogtreecommitdiff
path: root/tests/fchmodat.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2021-06-02 08:13:00 +0000
committerDmitry V. Levin <ldv@strace.io>2021-06-02 08:13:00 +0000
commit9fac2ae8318639173d15c40151e1510c0c281176 (patch)
tree92b606f71762cfa9ce29da64e4d5c6d079f16315 /tests/fchmodat.c
parent1d6e24f5783d4c1d8b362b67b16e54c3d851d60e (diff)
downloadstrace-9fac2ae8318639173d15c40151e1510c0c281176.tar.gz
tests: assume __NR_fchmodat is defined
fchmodat syscall entries are present in syscallent files for all supported architectures. * tests/fchmodat.c: Assume __NR_fchmodat is defined.
Diffstat (limited to 'tests/fchmodat.c')
-rw-r--r--tests/fchmodat.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/fchmodat.c b/tests/fchmodat.c
index 2c69f4624..79850470b 100644
--- a/tests/fchmodat.c
+++ b/tests/fchmodat.c
@@ -11,13 +11,11 @@
#include "tests.h"
#include "scno.h"
-#ifdef __NR_fchmodat
+#include <fcntl.h>
+#include <stdio.h>
+#include <unistd.h>
-# include <fcntl.h>
-# include <stdio.h>
-# include <unistd.h>
-
-# include "secontext.h"
+#include "secontext.h"
int
main(void)
@@ -108,9 +106,3 @@ main(void)
puts("+++ exited with 0 +++");
return 0;
}
-
-#else
-
-SKIP_MAIN_UNDEFINED("__NR_fchmodat")
-
-#endif