diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2015-12-05 00:01:56 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2015-12-05 00:01:56 +0000 |
commit | cc2baf339fb4b962dc84dc2754035ef0ab5e05af (patch) | |
tree | 970e9e5b05c87d94707a0bc10a258b514770d6d1 /tests/newfstatat.c | |
parent | 8b6046a052255fe71fac200f0f7b3b76419dc16d (diff) | |
download | strace-cc2baf339fb4b962dc84dc2754035ef0ab5e05af.tar.gz |
tests: prepare for detailed testing of stat family syscalls
Parametrize code from fstatat.c to support <asm/stat.h>
as an alternative to <sys/stat.h> and move it to a separate file.
* tests/statx.sh: New file, based on fstatat64.test.
* tests/fstatat64.test: Use it.
* tests/newfstatat.test: Likewise.
* tests/xstatx.c: New file, based on fstatat.c.
* tests/fstatat.c: Use it.
* tests/Makefile.am (EXTRA_DIST): Add statx.sh and xstatx.c.
* tests/fstatat64.c (FSTATAT_NAME): Change to TEST_SYSCALL_NAME.
* tests/newfstatat.c: Likewise.
Diffstat (limited to 'tests/newfstatat.c')
-rw-r--r-- | tests/newfstatat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/newfstatat.c b/tests/newfstatat.c index 2f4540211..10a88e021 100644 --- a/tests/newfstatat.c +++ b/tests/newfstatat.c @@ -4,9 +4,9 @@ #include <sys/syscall.h> -#undef FSTATAT_NAME +#undef TEST_SYSCALL_NAME #ifdef __NR_newfstatat -# define FSTATAT_NAME "newfstatat" +# define TEST_SYSCALL_NAME newfstatat #endif #include "fstatat.c" |