tests: prepare for detailed testing of stat family syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 5 Dec 2015 00:01:56 +0000 (00:01 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 5 Dec 2015 00:01:56 +0000 (00:01 +0000)
commitcc2baf339fb4b962dc84dc2754035ef0ab5e05af
tree970e9e5b05c87d94707a0bc10a258b514770d6d1
parent8b6046a052255fe71fac200f0f7b3b76419dc16d
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.
tests/Makefile.am
tests/fstatat.c
tests/fstatat64.c
tests/fstatat64.test
tests/newfstatat.c
tests/newfstatat.test
tests/statx.sh [new file with mode: 0755]
tests/xstatx.c [new file with mode: 0644]